Disable and enable features in your application using Laravel Feature.
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"
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
composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.