Handle specific Create/Read/Update permissions with Spatie
Hello, I'm trying to use the following view for updating a certain user or role's permissions in my web application:
Until now, all permissions that exist on the project follow the pattern of 'create [module]'-'read [module]'-'update [module]' so having each permission listed isn't really the best approach. I don't want to abuse scripts on the front-end nor do I want to overflow the Permissions model or database access each time a person modifies a user or role's permissions. I came to the conclusion of having sort of the following tables:
but that wouldn't work with Spatie Permissions model which is of course as important. My question is, which Laravel class or methods should I make or modify in order to support this front-end view for updating permissions and still have everything lightweight and practical?
Please or to participate in this conversation.