Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Preference

An user may have own preference to be set while using your application. Well Adminetic Preference Module provides that feature. Store boolean value of wither true/false based on some declared preference

Preference
  • preference: Name of preference

  • Preference For: Can be used if preference is for certain set of user having mention roles. Applies to all role if left empty

  • active: default Boolean state of preference

Then you can use

This grabs the preference of auth()->user().

Last updated