Manage Maintenance Mode in Laravel Nova


August 31st, 2018

Manage Maintenance Mode in Laravel Nova

If for some reason you’ve been on another planet (see what I did there?), Laravel Nova is Now Available and the community has been rather busy building open-source tools around Nova.

One of those open-source tools is by David Piesse, who created a Laravel Nova extension that allows you to manage the maintenance mode of your application from Nova:

In Laravel, maintenance mode makes it easy to disable your application while you are performing maintenance on the application. With maintenance mode enabled, your application will return a 503 status code during maintenance. Now with this plugin, you can conveniently toggle maintenance mode from the Nova UI.

To install this package, first you need to require the package in your app’s composer file:

1composer require davidpiesse/nova-maintenance-mode

Next, you need to register the maintenance mode tool with Nova in your app’s NovaServiceProvider:

1public function tools()
3 return [
4 // ...
5 new \Davidpiesse\NovaMaintenanceMode\Tool(),
6 ];

You can check out the Maintenance Mode for Laravel Nova package on GitHub, which includes the source code an install instructions.

Since the release of Laravel Nova on August 22nd, the community has already produced a significant number of open-source ideas and packages. Nova too has already seen multiple patches and updates, and it’s excellent to see a thriving community growing and producing amazing tools (and documentation) around Laravel Nova.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.