Laravel Feature Flag is an awesome package for Laravel using https://alfrednutile.info/posts/175. This package provides the ability to toggle features (by users, groups, random, etc). You can install this package by using composer: composer require "friendsofcat/laravel-feature-flag" Add the following to your config/app.php providers array: FriendsOfCat\LaravelFeatureFlags\FeatureFlagsProvider::class, Add the following to your config/app.php providers array: php artisan vendor:publish --provider="FriendsOfCat\LaravelFeatureFlags\FeatureFlagsProvider" --tag='migrations'
You can enable a feature flag for specific user roles, by using the roles variant in the configuration form i.e.