mercredi 15 novembre 2017

Laravel - How to create multiple user roles and assign privilege to them?

I have to create an application in which there are 5 types of accounts

-- Super admin -- Inventory admin -- Shop owner -- Shop manager -- User

So How can I create these multiple accounts with laravel, should I use different middleware group for each. also, i have to create privileges with all.

Currently, I am using it with different middleware and session for each and separate tables in DB for each, but I don't think so that's a good way to do it.

What is the way to create these multiple accounts with laravel.

@Thanks



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

Aucun commentaire:

Enregistrer un commentaire