🖥️
Adminetic
  • Introduction
  • What is Adminetic
  • Prerequisites
  • Installation
  • Configurations
  • Modules
    • User Management
    • Role Management
    • Settings
    • Preference
    • Activity
  • Commands
    • CRUD Generator
    • Permission Generator
    • Repo Generator
    • Superuser Generator
    • Dummy Generator
    • API Generator
    • Helper Command
  • Services
    • OAuth
    • MyMenu
    • MyDashboard
    • 😎Bouncer
    • 💻CLI
  • Change Logs
  • Github Repo
  • Addons
    • Announcement
    • Contact
    • Website
    • Notify
    • Backup
    • Google Analytics
    • Business Hour
    • Newsletter
  • Example Walkthrough
Powered by GitBook
On this page

Was this helpful?

  1. Modules

Preference

PreviousSettingsNextActivity

Last updated 3 years ago

Was this helpful?

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: 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

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

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

Preference