Adding a team relationship #2518
Replies: 4 comments 4 replies
-
Are you talking about authorizing users' sessions? With Filament, when you log someone into their team (likely via middleware) you can simply then also set this package's global team id so that all lookups for the user use that team.
|
Beta Was this translation helpful? Give feedback.
-
@erikn69 What's your approach been for this? |
Beta Was this translation helpful? Give feedback.
-
@juliangums I had hoped to have time to look into this, but that hasn't happened. Do you want to take a stab at a PR? (with tests) |
Beta Was this translation helpful? Give feedback.
-
@drbyte I made a start, but am pretty busy right now. I also suck with tests. Maybe have a look at this and let me know if this is what you expected and if yes I (or someone else) can have a look at writing the tests for it thereafter: main...juliangums:laravel-permission:patch-2 |
Beta Was this translation helpful? Give feedback.
-
It would be great to access a role or permissions team via a relationship. This would make it easier to work with Filament for example. There could also be a setting to specify the name of the relationship.
Beta Was this translation helpful? Give feedback.
All reactions