Tell me how to enable maintenance mode in laravel 5?



Tell me how to enable maintenance mode in laravel 5?..

Answer / 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

More Laravel PHP Framework Interview Questions

Can you explain about serialization?

1 Answers  


What is namespace in laravel?

1 Answers  


What are policies?

1 Answers  


are you able to laravel create-project via composer, explain how?

1 Answers  


What is php artisan.

1 Answers  


How to access laravel project from another computer?

1 Answers  


What is a Laravel - Contracts ?

1 Answers  


I just installed laravel and have the evil whoops error,how do I find out what’s wrong and fix it?

1 Answers  


Tell me how would you add a 3rd party package like sentry?

1 Answers  


How to install laravel?

1 Answers  


Is laravel support caching? Explain

1 Answers  


How to write html code in laravel controller?

1 Answers  


Categories