dlouvard / laravel-gestionmaintenance
There is no license information available for the latest version (dev-master) of this package.
Add Maintenance Gestion for Laravel 5
dev-master
2017-07-27 10:40 UTC
Requires
- php: >=5.5.9
- illuminate/support: >=5.1
This package is auto-updated.
Last update: 2024-10-28 20:16:45 UTC
README
Use Laravel with the plugin maintenance
Features
- Add Maintenance Gestion in your application
Installation
In your project base directory run
composer require "dlouvard/laravel-gestionmaintenance":"master@dev"
To bring up the config file run, if you want to customize
php artisan vendor:publish
php artisan migrate
Then edit config/app.php
and add the service provider within the providers
array.
'providers' => array(
...
Dlouvard\LaravelGestionmaintenance\GestionmaintenanceServiceProvider::class,
Usage
Middleware :
Add \Dlouvard\LaravelGestionmaintenance\Middleware\MaintenanceMiddleware::class
in $middlewareGroups -> 'web' in app/kernel.php
View for login : @include('vendor.maintenances._maintenance_login')
View for header : @include('vendor.maintenances._maintenance_header')