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(
      )),
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 2

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!