I moved my project from desk to another.
When I run php artisan
it does not work.
I tried to run composer update
, but it returns the error
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
Kenil Vasani
This is how I solved this after an upgrade from laravel version 6.x – 7.x:
In
App\Exceptions\Handler
changedThen methods to accept instances of
Throwable
instead ofExceptions
as follows:In
config\session.php
:Then run
composer update