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.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zAav7J
via IFTTT

Aucun commentaire:

Enregistrer un commentaire