> For the complete documentation index, see [llms.txt](https://pratikdai404.gitbook.io/adminetic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pratikdai404.gitbook.io/adminetic/modules/preference.md).

# 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](https://3590348543-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbCZnEbkx6hMOJRn5tS%2F-MbHhnMQiH-k83s3u4NJ%2F-MbHiMdJeSfo7HML8p9h%2Fimage.png?alt=media\&token=7636af87-f934-4f16-8239-7d61ec2f0575)

* 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&#x20;

```
@preference('my_preference')
// displays if 'my preference' value is true
@endpreference
```

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