Hello,
I've bought the metronic theme few days ago and i have been trying to figure out how the permissions work in the Menu.
I have found under app/core/adapters/menu.php "fitlerMenyPermissions" function but i can't seem to understand how it interacts with the menu.
Since i can't use the blade directives to use the spatie permissions function under config/global/menu.php I want to find an alternative way.
Thank you in advance
Hi Ali Silarbi
We use this plugin for the permission/role function spatie/laravel-permission
If you integrate the user model with this permission, in the menu it will filter based on the user's permission/role.
For example this menu config:
array(
"title" => "Overview",
"path" => "documentation/getting-started/overview",
"role" => ["admin"],
),