mardi 5 septembre 2017

Laravel: how to distinguish normal user, moderator and admin

I want to have users with different roles and permissions - for example normal user - readonly, mods - edit/delete, admins - create/delete/edit. By default Laravel provides users model with migration. I read, for this purpose there should be additional tables for roles and permission. But I have no idea what structure this tables should have and what to do next. Are there any good tutorial for beginners for my question or can someone post an easy example?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire