codenrx/maintaince

This Laravel package makes it possible for you to set your website in "Under Construction" and "Under Maintaince" mode

dev-master 2019-09-21 18:06 UTC

This package is auto-updated.

Last update: 2024-05-22 04:19:11 UTC


README

issu Status Build Status folk Status contributions welcome Tweet

This Laravel package makes it possible for you to set your website in Under Construction or Under Maintaince mode

Install

composer require codenrx/maintaince

add these line in providers array of config/app.php

codenrx\maintaince\maintainceServiceProvider::class,

then , use these command to publish package config file (maintaince.php) in config folder and template in views\vendor\maintaince folder .

php artisan vendor:publish --provider="codenrx\maintaince\maintainceServiceProvider"

Open app\Http\Kernel.php & add these line into

protected $middleware = [
     .....................
     ..................
     \codenrx\maintaince\App\Http\Middleware\maintainceWare::class,
];

Usage

use these command to enable maintaince mode

php artisan make:maintaince on

You can also use these command to enable underconstruction mode

php artisan make:maintaince underconstruction

Disable Maintaince Mode

php artisan make:maintaince off

Customization

You can customize your template also . You need to go /resources/views/vendor/maintaince.

For Some Settings , You can check config file (maintaince.php) in config folder

Template Credits : ❤️ Colorlib

For more Links

Enjoy!