我将我的项目从办公桌移到另一个办公桌.
当我运行 php artisan 时它不起作用.
I moved my project from desk to another.
When I run php artisan it does not work.
我尝试运行 composer update,但它返回错误
I tried to run composer update, but it returns the error
脚本@php artisan package:discover 处理返回的自动加载转储后事件,错误代码为 255
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
这是我从 laravel 6.x - 7.x 升级后解决这个问题的方法:
This is how I solved this after an upgrade from laravel version 6.x - 7.x:
在AppExceptionsHandler 中改变了
//Use Exception;
Use Throwable;
然后接受 Throwable 而不是 Exceptions 的实例的方法如下:
Then methods to accept instances of Throwable instead of Exceptions as follows:
//public function report(Exception$exception);
public function report(Throwable $exception);
//public function render($request, Exception $exception);
public function render($request, Throwable $exception);
在 configsession.php 中:
//'secure' => env('SESSION_SECURE_COOKIE', false),
'secure' => env('SESSION_SECURE_COOKIE', null),
然后运行composer update
这篇关于脚本@php artisan package:discover 处理返回错误代码 255 的 post-autoload-dump 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Laravel Eloquent Union 查询Laravel Eloquent Union query(Laravel Eloquent Union 查询)
覆盖 Laravel 5 辅助函数Overwrite laravel 5 helper function(覆盖 Laravel 5 辅助函数)
laravel querybuilder 如何在 where 函数中使用 likelaravel querybuilder how to use like in wherein function(laravel querybuilder 如何在 where 函数中使用 like)
响应内容必须是实现 __toString()、“boolean"和“The Response content must be a string or object implementing __toString(), quot;booleanquot; given after move to psql(响应内容必须是实现 __toS
Laravel 5 的角色,如何只允许管理员访问某些根Roles with laravel 5, how to allow only admin access to some root(Laravel 5 的角色,如何只允许管理员访问某些根)
Laravel Auth - 使用 md5 而不是集成的 Hash::make()Laravel Auth - use md5 instead of the integrated Hash::make()(Laravel Auth - 使用 md5 而不是集成的 Hash::make())