Skip to content

8ctopus/lumen-7-maintenance-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen 7 simple maintenance mode

Build Status Latest Stable Version Total Downloads License

php 7.3 Lumen 7.x

How to install

composer require 8ctopus/lumen-7-maintenance-mode

How to configure

Add this to your AppServiceProvider or in bootstrap/app.php

$app->register(\oct8pus\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class);

Add the up and down commands in app/console/Kernel.php

protected $commands = [
    \oct8pus\MaintenanceMode\Console\Commands\DownCommand::class,
    \oct8pus\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 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:

  • IP Ranges
  • Dynamic DNS IP Filtering

About

Add php artisan up and down to lumen 6.*

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%