haruncpi/laravel-maintenance

A laravel maintenance that support secret route

v1.0.0 2020-12-30 04:43 UTC

This package is auto-updated.

Last update: 2024-11-29 06:35:28 UTC


README

for Laravel 6/7/5

Maintenance mode package for Laravel that support secret route!

Documentation

Install

composer require haruncpi/laravel-maintenance

Replace middleware in app/Http/Kernel.php

//\App\Http\Middleware\CheckForMaintenanceMode::class,
\Haruncpi\LaravelMaintenance\Middleware\MaintenanceMode::class,

Usage

This package support all default maintenance mode features with maintenance bypass by secret route.

Maintenance Bypass - Secret route
php artisan down --secret="mysecretkey"
Now you can bypass by secret route
https://example.com/mysecretkey

With this secret route, only you can access your website in live mode and the rest of the world get it in maintenance mode.

Other Packages