Laravel 5 on php artisan config:clear generated Closure::__set_state() error

后端 未结 7 990
情书的邮戳
情书的邮戳 2020-12-24 02:50

My code in on production and I ran

php artisan config:clear

After that, my code was not running. The index pages and all other pages went

7条回答
  •  春和景丽
    2020-12-24 03:48

    I had similar issues when I ran php artisan config:cache. Apparently, it is an issue when the application is trying to load cached configuration files that have closures in it. It won't be fixed in Laravel since it is a bad practice to have closures in config files. Refer this Github issue

    The way I solved this is by undo-ing this.

    Delete the cache for config.

    It is located in here

    bootstrap/cache/config.php

    OR

    vendor/config.php

提交回复
热议问题