DEF STUDIO srl

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();
Suggest a change
Last updated 26 April 2024