F
Filamentβ€’16mo ago
Povilas K

Tenancy: only belongsToMany? No belongsTo?

It's not strictly in "Help", more like a clarification before I shoot the video: do I understand correctly that tenancy is only belongsToMany, so a user may belong to multiple tenants only? I mean, if I have (or want to have) users.company_id field, then Filament tenancy wouldn't work, right? And yes, I understand that for new projects I can setup belongsToMany, and if the user has only one company/team it will just not show other teams. But still belongsToMany relationship is slower than belongsTo to query each time, so would prefer the faster option if it exists πŸ™‚
2 Replies
toeknee
toekneeβ€’16mo ago
That's an interesting point, you know why we user belongsToMany :-). You could submit a PR to support a choice between multiple and singluar team support?
Povilas K
Povilas KOPβ€’16mo ago
Yeah I guess I can do it. When I have time after shooting a gazilion videos about all new features πŸ™‚
Want results from more Discord servers?
Add your server