codenrx / Laravel-Under-Maintaince

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Under Maintaince Package

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!

About

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


Languages

Language:CSS 85.2%Language:PHP 8.3%Language:HTML 6.5%