baorv/l5-maintenance

Easy maintenance mode for Laravel 5

v0.0.1 2018-05-08 02:37 UTC

This package is auto-updated.

Last update: 2024-11-06 17:43:11 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.

Todo

Contributors