How to customize “artisan down” page?

Artisan has a convenient command artisan down for an occasion when you need to put your web-project down for a while – for the case of deployment, maintenance or anything like that. Question – how to customize that temporary error page?

So if you launch artisan down – visitors should see something like that in a browser:

0630_laravel_artisan_down
(actually, the page is much bigger, I just resized the browser for better readability)

So how do you customize it? Maybe you want to put your company logo here or some custom text like “We’ll be back in 15 mins” or do something like Twitter’s Fail Whale. The solution is simple – Laravel has a ready-made Blade template for you. In fact, that whole page is a template – located in resources/views/errors/503.blade.php:

0630_laravel_503_page

So change HTML code here to whatever you want – and people will see your personal error message. Just don’t forget to run artisan up when you want the app back live!

Like our articles?
Check out our Laravel online courses!

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here