Skip to content

Multiply roles and permission. #1718

Answered by drbyte
VictorPulzz asked this question in Q&A
Discussion options

You must be logged in to vote

As with any application, each layer needs to check and enforce its own rules for roles/permissions.

While the most common use of this package is for situations less complex than what you describe, there are many options for adding the extra layers you need.

Layer 1: Roles/Permissions per-user, enforced using @can() and $someUser->can(), middleware, etc. This may or may not include the wildcard-permissions feature, depending on needs.
Layer 2: optionally (only if relevant, and maybe not in your case) additional User-type models associated with additional Roles/Permissions
Layer 3: custom in-app relations between users and other models of your app, enforced using Model Policies, and/or midd…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VictorPulzz
Comment options

Answer selected by VictorPulzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants