mercredi 2 octobre 2019

Prevent role-specific users from accessing route

I have 2 roles, which is admin and user. Now when logging in, the admin goes to the dashboard route while the user goes to home. When user is logged in and changes the url to http://127.0.0.1:8000/dashboard it can access the admin's panel and I don't want that. How can I do achieve this?

PS. I'm new to Laravel



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire