I think that's a good start: https://spatie.be/docs/laravel-permission/v5/basic-usage/teams-permissions
Roles bases on teams and projects.
Hello, i'm trying to do an application that have roles based by project and by teams.
I'm working with Inertia and Jetstream Teams, every team or in this example "Company team" can have many projects, and every user can have different role depend of the project, but every user can have different role in team, because only some users can add new users to the team or modify billing.
Team Roles
- Administrator ( Can perform any action )
- Manager ( Can add new members )
- Editor ( Default role, i don't know if should be exists)
Project Roles
- Community Manager
- Project Manager
- Designer
- Etc,etc
Company Team
-
Projects
- Project X
- Project Z
-
Users
- User a (Team Role: Admin)
- User b ( Team Role: Editor? or maybe don't have a role?)
Project Z
-
Role for user a: Community Manager
-
Role for user b: Project Manager
Project X
-
Role for user b: Copy writer
-
Role for user a: Designer
I'm thinking to use a role package like Laratrust or Spatie Laravel Permission but i can't find how can i do this. What do you think that should be the best way to manage this?
Please or to participate in this conversation.