baorv / l5-maintenance
Easy maintenance mode for Laravel 5
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/baorv/l5-maintenance
Requires
- php: >=5.4.0
- laravel/framework: >=5.0
This package is auto-updated.
Last update: 2025-10-06 19:33:37 UTC
README
l5-maintenance
Laravel 5 library for creating maintenance mode easily.
Installation
Run composer to install library
composer require "baorv/l5-maintenance":"dev-master"
Or add package to require section of composer.json
... "require": { ..., "baorv/l5-maintenance":"dev-master", ... }, "minimum-stability": "dev", "prefer-stable": true ...
Add package service provider to provider list in config/app.php If you use Laravel >= 5.5, you can skip this step
... 'providers' => [ ..., 'Baorv\Maintenance\MaintenanceServiceProvider' ... ], ...
Open app/Http/Kernel.php and add middleware to top of $middleware
protected $middleware = [ \App\Http\Middleware\CheckForMaintenanceMode::class, ... ];
Maintenance page
You can create new view: resources/view/errors/503.blade.php
@extends('maintenance::errors.503')
Customize
Run command to publish
php artisan vendor:publish --provider="Baorv\Maintenance\MaintenanceServiceProvider"
Customize config on config/maintenance.php
Customize views on resources/views/errors/503.blade.php
Customize translations on resources/lang
License
This package is open-sourced software licensed under the MIT license.