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?
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
you can Customizing the table Eloquent query:
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query