Laravel shows Symfony-styled exception even when APP_DEBUG set to false

  debugging, laravel

Just deployed a new app to production and seeing a strange bug:

One of the pages has a PHP error and throws an exception. Strangely, it’s a Symfony branded exception page (screenshot), different from the ones I’ve seen in Laravel before. Env file is already set to production environment and has APP_DEBUG=false.

Does anyone know how to fix this?

I’ve tried the following to clear & reset cache, but it didn’t help

php artisan config:cache

Not sure if it matters, but the app was deployed using http://deployer.org with Deployer’s Laravel recipe

Source: Laravel

Leave a Reply