agenter-labs / illuminate-feature-checker
Feature checker for Laravel
dev-master
2022-05-20 06:11 UTC
Requires
- php: ^8.1
- illuminate/cache: ^9.0
- illuminate/contracts: ^9.0
- illuminate/support: ^9.0
Requires (Dev)
- fakerphp/faker: ^1.19
- laravel/lumen-framework: ^9.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-20 11:04:45 UTC
README
composer require agenter-labs/illuminate-feature-checker
Enviornment
SAAS_STORAGE_CACHE=redis,file
SAAS_MODEL_SUBSCRIPTION=Subscription model class name
SAAS_MODEL_FEATURE=Subscription feature model class name
SAAS_KEY=Encryption key
SAAS_TOKEN_NAME= Header or Cookie name
Setup
Register service provider
$app->register(AgenterLab\FeatureChecker\FeatureCheckerServiceProvider::class);
Register route middleware
$app->routeMiddleware([
'subscription' => \AgenterLab\FeatureChecker\SubscriptionMiddleware::class
]);
Generate signature
app('saas.request')->signature();