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-03-29 04:45:36 UTC


README

68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f686172756e6370692f6c61726176656c2d6d61696e74656e616e6365 68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e63652f434320425920342e302f323342434342 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f686172756e6370692f6c61726176656c2d6d61696e74656e616e6365 68747470733a2f2f62616467656e2e6e65742f62616467652f747769747465722f406c61726176656c61727469636c652f3144413146323f69636f6e266c6162656c 68747470733a2f2f62616467656e2e6e65742f62616467652f66616365626f6f6b2f6c61726176656c61727469636c652f336235393938

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