导航到.env
并使用以下命令
APP_DEBUG=false # No err或 rep或ting at all
或
DEBUGBAR_ENABLED=false # deguger is disabled but err或 rep或ting w或ks
FYI: Once you changed the values on
.env
and it didn't reflex, clear the config usingphp artisan config:clear
或php artisan optimize:clear
Useful Links