mardi 13 février 2018

Laravel user role access content in view

Have more than 150 views which has table content with the columns edit,view and add. I want to restrict view according to user role. For ex. if the admin login, he can able to see all the options, if other he can only add not delete and edit. How can we achieve this? One way is calling different views for diff roles but this is not redudant and even there is more than 150 views.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire