Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jlrdw's avatar

It's built into php, and server, session and if statements. And a users table with defined roles, etc.

jjudge's avatar

@daniel.schreij that looks interesting, and seems to be built on the latest 5.x built-in ACL, unlike most of the other solutions which bring most of the ACL functionality along with them. And the older packages are fine, but it always seems if Laravel is giving a pointer on a direction to go, and any package not going down that route will end up being harder to support as time goes on.

The package also does not appear to make any assumptions as to what the roles and permissions are applied to. The roles are polymorphic and can be assigned to any model you like, if I understand correctly. It looks rather good - check it out :-)

HimanhsuN's avatar

composer require spatie/laravel-permission very helpfull if you are fresher then very hard later its easy

Previous

Please or to participate in this conversation.