Benjamin Bertin

Results 4 comments of Benjamin Bertin

Why not have a simple method to allow a role on multiple resources? ``` php $roles = [ 'ArticleAndCategoryEditor' => [ [ 'resource' => new ClassResource(Article::class), 'actions' => [Actions::VIEW, Actions::EDIT]...

IsAllowed should accept a resource as a string, then we could create a virtual resource (like an application backend).

All the possible roles definition could be: ``` php $roles = [ 'ArticleEditor' => [ 'resource' => Article::class, 'actions' => [Actions::VIEW, Actions::EDIT], ], // same as the next one 'ArticleEditor'...