php artisan not responding after upgrading laravel 5.1 to 5.2 - composer-php

php artisan not responding after upgrading laravel 5.1 to 5.2.
I followed the upgrade guide here
https://laravel.com/docs/5.2/upgrade
Even composer update gives an error at
Generating autoload files
> php artisan clear-compiled
Could not open input file: artisan
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
What might be the problem?

Related

How to fix the error "In order to use the Auth::routes() method, please install the laravel/ui package" in laravel 8

On localhost every thing work okay but when I try to deploy laravel project to heroku I get this error:
message "In order to use the Auth::routes() method, please install the laravel/ui package"
I have tried the next things to fix this error but they are not working for me
composer require laravel/ui
php artisan ui bootstrap --auth
php artisan cache:clear
php artisan config:cache
php artisan route:cache
Manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.
And all of this solutions didn't work for me
Which version of laravel/ui are you trying to install? The newest - 4.x at the time of writing, is not compatible with Laravel 8. So you want to install 3.x for a version that supports Laravel 8.
composer require laravel/ui:^3.0

how to fix " PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found "?

when i run "php artisan jetstream:install livewire" I get this error :
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in H:\xampp\htdocs\tadavom123\bootstrap\app.php:14
i try to fix it with this codes but not working :
composer update
php artisan clear-compiled
composer dump-autoload
composer update --no-scripts
my composer version is : 2
php version : 7.3.10
laravel version: 8
in my case, you have to make sure that you write that code in folder that you want to run. In other hand, you need have a library php5-curl installed in your system, do this:
sudo apt-get install php7.3-curl
this curl have to be same with your php version. good luck.

composer dump-autoload error after fresh Laravel install

After a fresh install of Laravel 7, I snagged an error during the installation of google/cloud plugin.
My steps of what I did:
laravel new
composer require google/cloud
Then while installing, I encountered this error
Package manifest generated successfully.
Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code -1073741819
Installation failed, reverting ./composer.json to its original content.
I've also noticed that the .env file is missing. I did update my global composer with composer selfupdate and same error still occurs.

Laravel: `php artisan app:name MyApp` caused an exception: Kernel does not exist

I wanted to change the app.name of my Laravel project, I run:
php artisan app:name Retro
But have error:
Fatal error: Uncaught ReflectionException: Class Retro\Console\Kernel does >not exist in C:\photo->storage\vendor\laravel\framework\src\Illuminate\Container\Container.php:779
Then, I edited APP_NAME = Retro, and run:
php artisan config:clear
But it not working
Try this
After update App name
php artisan app:name myname
Follow this commands
php artisan cache:clear
php artisan config:clear
composer dump-autoload

Laravel 5.4 - error when vendor:publish executed command

I just installed Laravel 5.4.* and I have error when I execute this command:
php artisan vendor:publish
vagrant#homestead:~/projects/xxxx_com$ php artisan vendor:publish
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'League\Flysystem\MountManager' not found
vagrant#homestead:~/projects/xxxx_com$
Have you got an idea?
Probably you added new package to composer.json but you haven't run composer install. So make sure you run:
composer install
and after that run
php artisan vendor:publish
You might need to update your composer, run composer update
and see if that help.

Resources