Laravel: Maintenance Mode

By | February 18, 2018

When your application is in maintenance mode, then a custom view for maintenance should be displayed for all requests into your application.

To enable maintenance mode, execute the down Artisan command:

To disable maintenance mode, use the up command:

If the application is in maintenance mode, a  MaintenanceModeException will be thrown with a status code of 503.

So, you can override default view and render your own custom view as per your need by creating a view file resources/view/errors/503.blad.php

Thanks :)

Leave a Reply

Your email address will not be published. Required fields are marked *