rockbuzz/lara-maintenance

Puts the application into maintenance mode for all IPs that are not configured as an exception.

2.0.1 2021-08-19 16:26 UTC

This package is auto-updated.

Last update: 2024-10-30 02:21:33 UTC


README

Puts the application into maintenance mode for all IPs that are not configured as an exception.

Requirements

PHP: >=7.2

Install

$ composer require rockbuzz/lara-maintenance

Configuration

$ php artisan vendor:publish --provider="Rockbuzz\LaraMaintenance\ServiceProvider" --tag="config"

Usage

In App\Http\Kernel

protected $middleware = [
        \Rockbuzz\LaraMaintenance\Authorize::class,
        ...
    ];

In .env

APP_MAINTENANCE_MODE=true
APP_MAINTENANCE_EXCEPT="127.0.0.2, 127.0.0.3"

License

The Lara Maintenance is open-sourced software licensed under the MIT license.