Tell me how to enable maintenance mode in laravel 5?
Answer Posted / Hemant Gupta
To enable maintenance mode in Laravel 5, you can create a `.env` file in the root of your project and set the APP_DEBUG environment variable to false:
nn```
APP_DEBUG=false
```
Then, add the following lines to the bottom of the `.env` file:
```
MAINTENANCE_MODE=true
MAINTEANCE_MESSAGE=Your custom maintenance message here
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers