Laravel仅在生产模式下引发错误

问题描述 投票:1回答:0

当我将调试APP_LOG_LEVEL切换到生产时,抛出此错误

production.ERROR: Call to undefined method Closure::__set_state() {"exception":"[object] (Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalThrowableError(code: 0): Call to undefined method Closure::__set_state() at /srv/users/serverpilot/apps/saas/bootstrap/cache/config.php:1073)

我什至没有缓存配置文件。 没有/bootstrap/cache/config.php文件! 甚至更奇怪的是,仅在生产模式下会发生此错误!

php laravel caching production
© www.soinside.com 2019 - 2024. All rights reserved.