See https://laravel.com/docs/5.6/errors#custom-http-error-pages
artisan down returns a 503 error so you should create the following file: resources/views/errors/503.blade.php
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
How do I change the view that gets rendered when using the artisan down command? I would like to keep my error pages as is, and add a new one for specific this command.
Note that by only creating the 503 custom template all of your other error pages are still the same. Only for an error with status code 503 (service unavailable) you will show that custom blade file. And I guess you do not trigger 503 errors manually from your code somewhere.
But if you only want to catch the maintenance mode you could add a condition in your app/Exceptions/Handler.php and render a different view like:
public function render($request, Exception $e)
{
if ($e instanceof MaintenanceModeException) {
return \View::make('maintenance');
}
}
Please or to participate in this conversation.