Home > PHP Framework > Laravel > body text

How to turn off debug mode in laravel

WBOY
Release: 2022-06-06 11:49:13
Original
4005 people have browsed it

Method: 1. Modify the "APP_DEBUG" item in the ".env" file to false; 2. Restart the Laravel service. When "APP_DEBUG" in the ".env" file is set to false, it means turning off debug mode, and true means turning on debug mode.

How to turn off debug mode in laravel

#The operating environment of this article: Windows 10 system, Laravel version 6, Dell G3 computer.

How to turn off debug mode in laravel

There is APP_DEBUG in the .env file

If set to true, the debug mode is turned on

If set to false, Just turn off debugging mode.

How to turn off debug mode in laravel

Method:

1. Modify the .env file

APP_DEBUG=false

2. Then restart the Laravel service

The debugging mode and log configuration are in the config/app.php configuration file

Open debugging mode

How to turn off debug mode in laravel

[Related recommendations: laravel video tutorial]

The above is the detailed content of How to turn off debug mode in laravel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template