PHP code example of 8ctopus / lumen-9-maintenance-mode

1. Go to this page and download the library: Download 8ctopus/lumen-9-maintenance-mode library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

8ctopus / lumen-9-maintenance-mode example snippets


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

protected $commands = [
    \oct8pus\MaintenanceMode\Console\Commands\DownCommand::class,
    \oct8pus\MaintenanceMode\Console\Commands\UpCommand::class
];
sh
php artisan down
sh
    php artisan up
ini
ALLOWED_IPS=192.168.1.2,127.0.0.1,136.22.16.0