faizalmansor / lumen-6-maintenance-mode
Define application maintenance mode.
v1.1.1
2020-01-28 07:47 UTC
Requires
- php: >=7.2
- laravel/lumen-framework: ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- fzaninotto/faker: ^1.4.0
- laravel/lumen: ~6.0
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-10-28 19:59:46 UTC
README
php 7.3 Lumen 6.2
How to install
composer require faizalmansor/lumen-6-maintenance-mode
How to configure
Add this to your AppServiceProvider or in bootstrap/app.php
$app->register(
faizalmansor\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class
);
Add the up and down commands in app/console/Kernel.php
protected $commands = [
\faizalmansor\MaintenanceMode\Console\Commands\DownCommand::class,
\faizalmansor\MaintenanceMode\Console\Commands\UpCommand::class
];
Maintenance Mode on
php artisan down
Maintenance Mode off
php artisan up
IP based access
Currently only ipv4 and no ipranges
Add ALLOWED_IPS in your .env file
ALLOWED_IPS=192.168.1.2,127.0.0.1,136.22.16.0
Features planned:
- IP Ranges
- Dynamic DNS IP Filtering