friendsofcat / laravel-db-maintenance
Database implementation of app maintenance mode to replace default file maintenance
Installs: 29 478
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 10
Open Issues: 3
Requires
- php: ^8.0
- laravel/framework: ^9.0|^10.0
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ^5.0|^6.0|^7.0|^8.0
- php-coveralls/php-coveralls: ^2.1
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.3
README
A Database driven replacement for Laravel's default file based maintenance mode. This allows easy maintenance mode across multiple server environments.
Installation
composer require friendsofcat/laravel-db-maintenance
The service provider will be auto discovered. This will replace the default up
and down
commands
as well as register a new CheckDbMaintenance
middleware globally. So no need to manually add this to
Kernel $middleware. However, the default \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class
can be removed (optional).