Error: Cannot find module 'vue/compiler-sfc' Require stack: \node_modules\vue-loader\dist\index.js with vue version 2 - laravel

I downloaded laravel 8 and it was ok but after typing php artisan ui vue --auth it got this error

Try upgrading your vuejs version to vuejs 3

Related

Call to undefined method Laravel\Lumen\Routing\Router::middleware()

After the artisan command composer require dusterio/lumen-passport the error comes Call to undefined method Laravel\Lumen\Routing\Router::middleware()
I dont know why this error occured
I am trying to installing the passport package on laravel lumen framework but because of the error nothing happened
This seems similar to this issue:
https://github.com/dusterio/lumen-passport/issues/175
Try to follow this:
Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:
"laravel/passport": "^10.4"

Laravel Stats Tracker - Laravel 8

I am having issues installing the "pragmarx/tracker" package for Laravel 8.
For some reason, I am getting an error.
Error:
Composer.json:

Laravel CLI fails to create new app due to Cannot use lexical variable $eventName as a parameter name

After successful installation of Laravel's install tool using composer using composer global require "laravel/installer" command, the first attempt to create an application by running laravel new app-name fails with the following output, any advice will be appreciated :)
Crafting application...
PHP Fatal error: Cannot use lexical variable $eventName as a parameter name in /Users/ABN/.composer/vendor/guzzlehttp/guzzle/src/Event/Emitter.php on line 48
PHP Stack trace:
PHP 1. {main}() /Users/ABN/.composer/vendor/laravel/installer/laravel:0
PHP 2. Symfony\Component\Console\Application->run() /Users/ABN/.composer/vendor/laravel/installer/laravel:13
PHP 3. Symfony\Component\Console\Application->doRun() /Users/ABN/.composer/vendor/symfony/console/Application.php:126
PHP 4. Symfony\Component\Console\Application->doRunCommand() /Users/ABN/.composer/vendor/symfony/console/Application.php:195
PHP 5. Laravel\Installer\Console\NewCommand->run() /Users/ABN/.composer/vendor/symfony/console/Application.php:878
PHP 6. Laravel\Installer\Console\NewCommand->execute() /Users/ABN/.composer/vendor/symfony/console/Command/Command.php:259
PHP 7. Laravel\Installer\Console\NewCommand->download() /Users/ABN/.composer/vendor/laravel/installer/src/NewCommand.php:52
PHP 8. GuzzleHttp\Client->get() /Users/ABN/.composer/vendor/laravel/installer/src/NewCommand.php:125
PHP 9. GuzzleHttp\Client->createRequest() /Users/ABN/.composer/vendor/guzzlehttp/guzzle/src/Client.php:125
PHP 10. GuzzleHttp\Client->getEmitter() /Users/ABN/.composer/vendor/guzzlehttp/guzzle/src/Client.php:115
PHP 11. spl_autoload_call() /Users/ABN/.composer/vendor/guzzlehttp/guzzle/src/Event/HasEmitterTrait.php:15
PHP 12. Composer\Autoload\ClassLoader->loadClass() /Users/ABN/.composer/vendor/guzzlehttp/guzzle/src/Event/HasEmitterTrait.php:15
PHP 13. Composer\Autoload\includeFile() /Users/ABN/.composer/vendor/composer/ClassLoader.php:322
Turned out the issue is related to the guzzle version installed on the system.
After seeing similar issue reported around guzzle 5.3 on some other repositories/apps, confirmed my globally installed version by running composer global info guzzlehttp/guzzle and it was 5.3.
Then updating my composer's global installation by running composer global updatesolved the problem, after seeing the update report as shown bellow, running the same laravel new app-name generates the application successfully.
Updating guzzlehttp/guzzle (5.3.0 => 6.2.3): Downloading (100%)
This is related to Guzzle's PHP 7.x incompatibility and this has been fixed in Guzzle >=5.3.1.
The solution is to upgrade your Guzzle by modifying line in your composer.json file to:
"guzzlehttp/guzzle": "~5.3.1",
or:
"guzzlehttp/guzzle": "~5.3#stable",

I can not deploy laravel 5.3 app to server

I tried an old method like changing server.php to index.php and then ran the app but I am getting error like error.
The domain.com page isn’t working
domain.com is currently unable to handle this request.
HTTP ERROR 500
I am using godaddy shared hosting.. the server.php has changed in laravel 5.3
Laravel 5.3 now requires a PHP version of >= 5.6.4. From the docs:
You will need to make sure your server meets the following requirements:
PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP
Extension Tokenizer PHP Extension
Also note that Laravel 5.3 now requires a PHP version of >= 5.6.4
answered by camelCase

laravel showing error gives failed to open stream: no such file or directory autoload.php

Im new with laravel and give me error showing: failed to open stream: no such file or directory autoload.php
im using:
windows 8
composer
laravel 5
wampserver
php 5.3
Looks like you're missing vendor/autoload.php and this is probably because when you tried to install laravel, composer threw an error about you trying to use PHP 5.3. Laravel 5 requires at least 5.4.
On a side note PHP 5.3 is end of life and unsupported.

Resources