samedi 25 novembre 2017

Laravel middleware for different role user in a same table

I am using laravel 5.4. In my apps, there are two kind of user. Normal and admin. Normal or admin is decided by role column. Now I want to protect some page for user. I can protect any page using auth. But it only protect without logged in user. How I can protect some page for user? and give access to the admin only. Sorry for my poor English. Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire