Debugging is a helpful feature for developers to identify the causes of issues. Most modern application frameworks allow you to enable debug mode, including Laravel. It is a good idea to keep enabling debug mode in your development environment. In your production environment, this value should always be false.
This tutorial help to enable/disable debug mode in a Laravel application.
Enable Debug in Laravel
To enable the debug mode, edit “.env” file in the root directory of your Laravel application. Set the APP_DEBUG environment variable value to “true”.
Disable Debug in Laravel
Set the APP_DEBUG environment variable value to “false” in “.env” environment configuration file.
The users need detailed messages in log files to adjust LOG_LEVEL environment variables.