Package Data | |
---|---|
Maintainer Username: | usmanjdn |
Maintainer Contact: | J3rrey.git@gmail.com (Jeremy Bruns) |
Package Create Date: | 2020-09-25 |
Package Last Update: | 2020-09-25 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 15:07:08 |
Package Statistics | |
---|---|
Total Downloads: | 2 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 0 |
Total Forks: | 3 |
Total Open Issues: | 0 |
php 7.2 Lumen 8.x
composer require usmanjdn93/lumen-8-maintenance-mode
Add this to your AppServiceProvider or in bootstrap/app.php
$app->register(\usmanjdn93\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class);
Add the up and down commands in app/console/Kernel.php
protected $commands = [
\usmanjdn93\MaintenanceMode\Console\Commands\DownCommand::class,
\usmanjdn93\MaintenanceMode\Console\Commands\UpCommand::class
];
php artisan down
php artisan up
Currently only ipv4 and no ip ranges
Add ALLOWED_IPS in your .env file
ALLOWED_IPS=192.168.1.2,127.0.0.1,136.22.16.0
Features planned: