meat / coming-soon
Force a comming soon page if APP_COMINGSOON variable is true on .env
0.1
2016-12-15 16:19 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2024-12-21 21:31:18 UTC
README
#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'); ... });