rdehnhardt / lumen-maintenance-mode
Define application maintenance mode.
Installs: 25 075
Dependents: 1
Suggesters: 0
Security: 0
Stars: 24
Watchers: 3
Forks: 26
Open Issues: 1
Requires
- php: >=5.5.9
- laravel/lumen-framework: ~5.0
Requires (Dev)
- fabpot/php-cs-fixer: ~1.11
- fzaninotto/faker: v1.4.0
- laravel/lumen: ~5.0
- phpunit/phpunit: ~4.0
README
How to install
composer require rdehnhardt/lumen-maintenance-mode
How to configure
In bootstrap/app.php, add this instruction in providers
$app->register(
Rdehnhardt\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class
);
Set View
resources/views/errors/503.blade.php
Put the application into maintenance mode.
php artisan down
Bring the application out of maintenance mode.
php artisan up
IP released for access
In .env file
ALLOWED_IPS=999.99.9.999,999.99.9.999,999.99.9.999