Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 679 Bytes

readme.md

File metadata and controls

37 lines (26 loc) · 679 Bytes

#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');
    ...
});