If they have a role_id you can check for the right permissions in the controller Auth::user()->role_id > 2 and you can make a if in the view to display html @if(Auth::user()->role_id > 2)
Feb 18, 2016
9
Level 41
Roles and sidebar
Hi everyone,
I'm working on a project where there are different roles (admin, manager, user, ... in the end there will be 9 differents roles) Each user has only one role but there all working on the same app.
Do you know a simple way (or at least the most practical) to adjust the sidebar with the role of the user logged ?
Ex: An admin will have access to all features, a manager will have to the users and can only edit them, etc....
Am i clear enough ?
Thanks for your help !
Please or to participate in this conversation.