m1guelpf/laravel-feature
Composer 安装命令:
composer require m1guelpf/laravel-feature
包简介
Disable and enable features in your application using Laravel Feature.
README 文档
README
Disable and enable features in your application using Laravel Feature.
Installation
You can install the package via composer:
composer require m1guelpf/laravel-feature
The package will automatically register itself.
Then, you'll need to publish the config file with:
php artisan vendor:publish --provider="M1guelpf\Feature\FeatureServiceProvider"
Usage
You can check if a feature is enabled both by using the helper or the Facade:
Feature::enabled('a-feature'); //true feature('a-feature'); //true
You can also define feature routes:
Route::get('whatever', 'SomeController@index')->name('whatever')->feature('a-feature');
Or use features on Blade:
@feature('a-feature') Some feature related-text @endfeature
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 336
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-04