meat/coming-soon
Composer 安装命令:
composer require meat/coming-soon
包简介
Force a comming soon page if APP_COMINGSOON variable is true on .env
README 文档
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'); ... });
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-15