15/12
2016
Wallogit.com
2017 © Pedro Peláez
Force a comming soon page if APP_COMINGSOON variable is true on .env
Laravel package, (*1)
Install with composer
composer require meat/coming-soon, (*2)
Add the service provider to your config/app.php, (*3)
$providers = [
\Meat\ComingSoonServiceProvider::class
...
]
php artisan vendor:publish, (*4)
Edit your config\coming-soon.php, (*5)
Add APP_COMINGSOON=true to your .env, (*6)
Add the middleware comingsoon to the routes you want to block until the goes live., (*7)
```php, (*8)
Route::get('coming-soon', function() { return view('coming-soon'); });, (*9)
Route::group(['middleware' => 'comingsoon'], function() { //All the blocked routes, (*10)
Route::get('/', 'HomeController@home');
...
}); ```, (*11)