During production, the debug mode can also be disabled to prevent any sensitive information from being seen by users.
Enable Debug Mode in Laravel
To enable the debug mode in Laravel, you can set it through the environment configurations ".env" file APP_DEBUG to "true".
APP_NAME="Laravel App" APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=https://laravel.test
Disable Debug Mode in Laravel
To disable the debug mode in Laravale, you can just set the APP_DEBUG to "false".
APP_NAME="Laravel App" APP_ENV=local APP_KEY= APP_DEBUG=false APP_URL=https://laravel.test
To read more visit the Laravel Configuration Documentation.
Leave a reply