I'm developing a broker CRM using metronic 8 (laravel version) and I want to show menu items to respective users based on their roles and permissions.
so how can I do that???
do we have a "can" property for each menu item or what???
Hi,
The Metronic Laravel use laravel-permission plugin from Spatie.
https://spatie.be/docs/laravel-permission/v5/introduction
You can add the "role" or "permission" for each menu item.
<img src="https://i.ibb.co/VYnRqQ0/image.png" alt="image" border="0">
The menu and permission logic are defined in this file.
app/Core/Adapters/Menu.php
Thanks