belipero's avatar

Laravel ACL Organizations/Groups/Users/Roles Package?

Hi! I'm trying to find the best package for managing ACL permissions.

The organizational structure needed to manage permissions is:

  1. There will be many Organizations.
  2. There will be many Groups of Users which will belong to each Organization (those Groups will not more than 5 and they will have different users depending the Organization).
  3. There will be many Users which can belong to 1 or more Groups and to 1 or more Organizations.
  4. Users will have 1 or more roles.

The restriction needed is that user's will only access records which belong to his groups/organizations/role

Which one do you recommend?

Regards

0 likes
6 replies
etiennedeschenes's avatar
Level 27

Have a look at Spatie laravel-permissions: https://docs.spatie.be/laravel-permission/v3/introduction/

You have Users-Roles-Permissions out of the box (users AND roles can have many permissions and users can have many roles, giving them the sum of all of their permissions). You will have to implement the organizations by yourself though (I don't know of any Laravel package implementing all your needs).

Spatie is probably the best Laravel package editor and it's "postcardware".

2 likes
belipero's avatar

Thanks @etiennedeschenes ! I have looked at that package and it looks great for user and roles, but as you said, their is no support for groups and organizations. I will keep looking!

Regards

luisferfranco's avatar

What about the teams features in Jetstream? I know this question is a bit old, but I'm trying now with Jetstream and looks pretty good for what you look for

tszyuloveyou's avatar

@luisferfranco If I don't want user need to change the current team that what can I do. eg: a user has team A role admin and team b role member than, I want user same time two role permissions

Please or to participate in this conversation.