Replies: 1 comment
-
Please refer to our docs for more information on building menus. Our guide to conditionally adding items should help: https://spatie.be/docs/menu/v3/items-in-depth/conditionally-adding-items |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
How can I create this menu structure in Laravel?
It would be important for the menu item to disappear or appear based on permission.
Example:
All menu items: Chat, Mailbox, Invoice (List, Preview, Add, Edit), Calendar
He has two roles: administrator and moderator
Admin can see all permissions (Chat, Mailbox, Invoice (List, Preview, Add, Edit), Calendar)
The moderator only has a Chat, Invoice (List, Preview), Calendar
Beta Was this translation helpful? Give feedback.
All reactions