Skip to content

Laravel Maintenance Mode on FlyWP

Maintenance mode takes your Laravel application offline with a 503 page, using php artisan down. Use it while you make changes that visitors should not see.

  1. Open your Laravel site and click Laravel in the site menu.
  2. In the Maintenance Mode card, click Enable maintenance mode. The Enable maintenance mode? dialog opens.
  3. Optional: in Secret bypass (optional), enter a secret or click Generate. Visitors with the secret can reach the site at /<secret> while maintenance mode is active. Use letters, numbers, dashes, and underscores, up to 64 characters.
  4. Click Enable.

Enable maintenance mode dialog on the Laravel page

The button shows Applying… until the change finishes, and then you see Maintenance mode enabled. The card badge changes from Inactive to Active, and visitors get a 503 response. You do not need to click Save Changes for this card.

  1. Click Turn off maintenance mode.
  2. In the Bring site live? dialog, click Bring live.

You see Site is live again. when it is done.

The Laravel page checks the current state on the server, so the badge shows Checking… for a moment when you open the page. If the change fails, the site gets an alert with the message Failed to update maintenance mode.

This is separate from the maintenance mode for WordPress sites. See Maintenance Mode for those.

Still stuck? How can we help?

View as Markdown