Skip to content

freshworkstudio/meat-coming-soon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#MEAT | Coming Soon Laravel package

Installation

Install with composer composer require meat/coming-soon

Add the service provider to your config/app.php

$providers = [
    \Meat\ComingSoonServiceProvider::class
    ...
]

php artisan vendor:publish

Edit your config\coming-soon.php

Add APP_COMINGSOON=true to your .env

Add the middleware comingsoon to the routes you want to block until the goes live.

Route::get('coming-soon', function() {
    return view('coming-soon');
});

Route::group(['middleware' => 'comingsoon'], function() {
    //All the blocked routes
    
    Route::get('/', 'HomeController@home');
    ...
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages