Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

后端 未结 14 2170
孤街浪徒
孤街浪徒 2020-12-03 05:09

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

14条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 05:37

    This happens because you have upgraded to Laravel 7.

    To fix it, update app/Exceptions/Handler.php like so:

    This is documented in the official upgrade guide here:

    https://laravel.com/docs/7.x/upgrade#symfony-5-related-upgrades

提交回复
热议问题