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-04-06 16:30:43 UTC


README

68747470733a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f636f6d706f6e656e74732f6c6f676f2d6c61726176656c2e737667

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