A simple maintenance mode package for Laravel applications
A simple maintenance mode package for Laravel applications
v1.0.5 2025-03-04 20:09 UTC
This package is auto-updated.
Last update: 2025-03-04 20:09:23 UTC
A simple and flexible maintenance mode package for Laravel applications.
InstallationYou can install the package via composer:
composer require bagsiz/laravel-maintenance
The package will automatically register its service provider and middleware.
ConfigurationYou can publish the configuration file and views:
php artisan vendor:publish --provider="Bagsiz\Maintenance\MaintenanceServiceProvider" --tag="maintenance"
This will create:
config/maintenance.php - Configuration fileresources/views/maintenance/maintenance.blade.php - Default maintenance viewuse Bagsiz\Maintenance\Facades\Maintenance; // Enable maintenance mode Maintenance::enable(['127.0.0.1'], ['admin/*']); // Disable maintenance mode Maintenance::disable(); // Check if maintenance mode is enabled if (Maintenance::isEnabled()) { // ... } // Get maintenance mode data $data = Maintenance::getData();Using Artisan Commands
Enable maintenance mode:
php artisan maintenance on --ip=127.0.0.1 --ip=192.168.1.1 --path=admin/* --path=api/*
Disable maintenance mode:
php artisan maintenance offCustomizing the Maintenance View
The package includes a default maintenance view that you can customize. After publishing the views, you can modify resources/views/maintenance/maintenance.blade.php to match your application's design.
The view includes:
config('app.admin_email'))The MIT License (MIT). Please see License File for more information.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Как устроен и работает космический корабль «Союз»: ракеты. Сегодня, как ... | 0 | 10.76 | 28-08-2026 |
| 2 | Он отправится к МКС в сентябре Сегодня, 25 августа, на ... | 0 | 7.65 | 25-08-2026 |