How to Enable Debug Mode in Laravel

How to Enable Debug Mode in Laravel

 

How to Enable Debug Mode in Laravel


Debugging is a helpful feature for developers to identify the causes of issues. Most of the modern application frameworks provide you the option to enable debug mode including Laravel. It is a good idea to keep enable 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 the “.env” file in the root directory of your Laravel application. Set the APP_DEBUG environment variable value to “true”.

Enable Debug in Laravel

Disable Debug in Laravel

Set the APP_DEBUG environment variable value to “false” in the “.env” environment configuration file.

Laravel disable debug

The users need detailed messages in log files to need to adjust LOG_LEVEL environment variables. Read this to know more about logging in to Laravel.

Reactions

Post a Comment

0 Comments

close