Tenancy: resource of models belonging to multiple tenants
Hi,
In a multi-tenancy setup a user can belong to multiple tenants. Each tenant must be able to edit users belonging to that tenant.
How do I scope this in the UserResouce?
Solution:Jump to solution
you can Customizing the table Eloquent query:
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query...
4 Replies
Solution
you can Customizing the table Eloquent query:
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
Ty that will work
Alternatively you can change
protected static ?string $tenantOwnershipRelationshipName = "teams";
On the UserResource
Yeah :D, I ended up doing that