DEF STUDIO srl

Need help with Laravel and web development?

Hire one of our experts for your projects.

We build tailored products, websites and platforms — with care for UX, performance and maintainability.

Booking open for Q4 — limited slots

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