Povilas K
Povilas K
FFilament
Created by Povilas K on 8/8/2023 in #❓┊help
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 🙂
4 replies