Skip to main content
Category:

Maintenance Mode in Laravel


If you want to enable maintenance mode on your page, execute the down Artisan command:


php artisan down

Then people would see default 503 status page.

You may also provide flags:
- message that would be shown
- retry page reload every X seconds
- still allow the access to some IP address

php artisan down --message="Upgrading Database" --retry=60 --allow=127.0.0.1

 

When you've done the maintenance work, just run


php artisan up

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook