Updating Values
Updating Values
Laravel Pennant stores the value resolved for a given scope, in order to change the stored value this package offers some useful methods:
Activate a feature
AppFeature::multi_language->activate(); //also for a given scope AppFeature::multi_language->activate($user);
Deactivate a feature
AppFeature::multi_language->deactivate(); //also for a given scope AppFeature::multi_language->deactivate($user);
Forget stored value
AppFeature::multi_language->forget(); //also for a given scope AppFeature::multi_language->forget($user);
Forget for all scopes
AppFeature::multi_language->purge();