Look into query scopes.
See scope example here https://gist.github.com/jimgwhit/ed44a6c81815804f1ab910ce9eb88d84
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I made myself somewhat familiar with both spatie an bouncer packages for roles and permissions.
I am wondering though, how to approach about gradation of roles.
Imagine this structure of a blog:
Does spaties or bouncer comes with something to match the ranking out of the box? If not, could you point me to some videos / other material I could use to make it work please?
Please or to participate in this conversation.