How can we use maintenance mode in laravel 5?



How can we use maintenance mode in laravel 5?..

Answer / Anand Sharma

To enable maintenance mode in Laravel 5, add the following lines to your `.env` file: `APP_DOWN=true`, and update your `app/Exceptions/Handler.php` class to set a proper response for HTTP 503 status code. After that, you can start the maintenance script using the artisan command: `php artisan down`. To stop maintenance mode, use: `php artisan up`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to create real time sitemap.xml file in laravel?

1 Answers  


Explain Events and Listeners ?

2 Answers  


Tell me how to use select query in laravel?

1 Answers  


How will you register service providers?

1 Answers  


What is laravel dusk?

1 Answers  


Explain contextual binding and how does it work?

1 Answers  


How to install and start, stop mysql on valet?

1 Answers  


How to access session data?

1 Answers  


What is reverse path check?

1 Answers  


What is laravel artisan?

1 Answers  


How do I assign several roles to users and permit the users to perform some actions based on those roles?

1 Answers  


How to set configuration values in laravel?

1 Answers  


Categories