Laravel PHP artisan config:cache 使用后 Call to undefined method Closure::__set_state ()?
最新:已经解决,最后还是在Stack Overflow找到了答案,以下
https://stackoverflow.com/questions/311543...
今天用了一个命令
Laravel php artisan config:cache
后面使用composer还是artisan都报错了
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Closure::__set_state()
查询了一下错误的位置是
bootstrap\cache\config.php下的
'api' =>
array (
'standardsTree' => 'vnd',
'subtype' => '',
'version' => 'v1',
'prefix' => 'api',
'domain' => NULL,
'name' => NULL,
'conditionalRequest' => true,
'strict' => false,
'debug' => true,
'errorFormat' =>
array (
'message' => ':message',
'errors' => ':errors',
'code' => ':code',
'status_code' => ':status_code',
'debug' => ':debug',
),
'middleware' =>
array (
),
'auth' =>
array (
'basic' =>
Closure::__set_state(array(
)),
'jwt' =>
Closure::__set_state(array(
)),
感谢,遇到同样的问题了