viitech / lumen-maintenance-mode by A7madev
forked from rdehnhardt/lumen-maintenance-mode

Define application maintenance mode.
17
0
1
Package Data
Maintainer Username: A7madev
Maintainer Contact: renatotkd@gmail.com (VII Tech Solutions)
Package Create Date: 2020-03-19
Package Last Update: 2020-04-19
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:20:26
Package Statistics
Total Downloads: 17
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Lumen maintenance mode

Latest Stable Version Total Downloads License Build Status Scrutinizer Code Quality

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