mardi 17 septembre 2019

customize "can" function in laravel

how i can customize @can function in laravel?

i want revoke specific permission from user by not delete permission from permissions table. the users that have admin group can create users and give permission to them by multiple roles. the super admins can revoke a permission from users but they can't delete permission from table, they can only revoke by adding permission to another table for example revoked_permissions. now i want customize @can for ignore permissions that exists on revoked_permissions.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire