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 |
How to create real time sitemap.xml file in laravel?
Explain Events and Listeners ?
Tell me how to use select query in laravel?
How will you register service providers?
What is laravel dusk?
Explain contextual binding and how does it work?
How to install and start, stop mysql on valet?
How to access session data?
What is reverse path check?
What is laravel artisan?
How do I assign several roles to users and permit the users to perform some actions based on those roles?
How to set configuration values in laravel?