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

gandra404's avatar

romanbican/roles vs Zizaco/entrust vs santigarcor/laratrust for roles and permissions

I am working on laravel 5.3 project and evaluation following packages for roles and permissions:

They are pretty similar and both looks promising. One advantage Zizaco/entrust has over romanbican/roles is ability to use AND/OR operators in the middleware(https://github.com/romanbican/roles/issues/208)

Great advantage of romanbican/roles over Zizaco/entrust is Permissions Inheriting (https://github.com/romanbican/roles#permissions-inheriting)

I have to make roles and permissions impl using views on tables from other database which is maintained by other system. In this system user has 1 role. And role has self reference so there is hierarchical structure, for example:

  1. canSeeAnimals
  2. canSeeMammals (child of canSeeAnimals)
  3. canSeeWolf (child of canSeeMammals)

So, for this use case romanbican/roles is better suited than Zizaco/entrust?

Feedback?

========= NEW INFO =========

Just received interesting feedback on romanbican/roles github page (https://github.com/romanbican/roles/issues/209#issuecomment-274852228):

The last 2 years there are no issues fixed so we decided to update and maintain a copy of bican roles. You can find it on packagist: https://packagist.org/packages/ultraware/roles

0 likes
0 replies

Please or to participate in this conversation.