Scope for the Panel
Hi, is it possible to add a global scope for all queries in the Filament Panel instead of modifying
getEloquentQuery
in every Resource?
Or it would be better to have a global filter for all resources?4 Replies
What is it you are trying to do? By default there is a global scope for tenancy you just need the relationship on the model.
Thanks for your answer.
I am not sure, I have a structure where a logged user can manage many organizations, and an Organization has many places to manage, e.g. addresses, and employees. I am looking at something like context, because when the user is logged in then he can switch context (organization) and see only addresses employees for the organization.
So then organization is the tenant and as such you would tend to use tenancy for that exact scenario