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

后端 未结 14 2126
孤街浪徒
孤街浪徒 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:36

    nothing worked. So I installed a new project, and I read Handler.php in App\Exceptions, it was different, probably because I copied some solution and Internet and deleted the following:

    protected $dontReport = [
        //
    ];
    
    protected $dontFlash = [
        'password',
        'password_confirmation',
    ];
    

    I copy here all of Handler.php generated by laravel 7.5, may be useful for someone:

    }

提交回复
热议问题