, (*1)
l5-maintenance
Laravel 5 library for creating maintenance mode easily., (*2)
Installation
Run composer to install library, (*3)
composer require "baorv/l5-maintenance":"dev-master"
Or add package to require section of composer.json, (*4)
...
"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, (*5)
...
'providers' => [
...,
'Baorv\Maintenance\MaintenanceServiceProvider'
...
],
...
Open app/Http/Kernel.php and add middleware to top of $middleware, (*6)
protected $middleware = [
\App\Http\Middleware\CheckForMaintenanceMode::class,
...
];
Maintenance page
You can create new view: resources/view/errors/503.blade.php, (*7)
@extends('maintenance::errors.503')
Customize
Run command to publish, (*8)
php artisan vendor:publish --provider="Baorv\Maintenance\MaintenanceServiceProvider"
Customize config on config/maintenance.php, (*9)
Customize views on resources/views/errors/503.blade.php, (*10)
Customize translations on resources/lang, (*11)
License
This package is open-sourced software licensed under the MIT license., (*12)
Todo
Contributors