Replies: 1 comment 1 reply
-
Make a PR without break current behavior |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if a spatie permission shares the same name as a laravel policy, spatie permissions is run 1st.
Hence the documentation suggest naming spatie permissions differently from laravel policies.
However I think there is an alternate solution that would be nice if Spatie Permissions support it too. 1 that is adopted by Bouncer
For context, Bouncer by default run its permission checks after Laravel policies run (my preferred choice. But it can be configured to before with this
Behind the scenes Bouncer does this
It would be nice if Spatie permissions allow us to define its permissions check to run before or after Laravel native Policies too.
Beta Was this translation helpful? Give feedback.
All reactions