Ahmad
Ahmad
FFilament
Created by Ahmad on 7/24/2024 in #❓┊help
Multi-tenancy tenantMenu performance (query count)
I've noticed that when the tenant menu is enabled to display all tenants a user belongs to, and the list of tenants is big, Filament performs a permission check (via a policy) for each resource across all tenants. This results in a significant number of unnecessary queries, as permissions should only be checked for the current tenant. Any reasons why this happens? and if there's a way to optimize or avoid this behavior?
5 replies
FFilament
Created by Ahmad on 1/20/2024 in #❓┊help
How can i manage authorization for a custom page (not attached to resource)?
How can i manage authorization for a custom page (not attached to resource)? I have tried to use canAccess function, but that didn't work.
11 replies
FFilament
Created by Ahmad on 9/18/2023 in #❓┊help
How to call a function in another service on saving a relationship manager item of one resource?
I have a resource (Product) that has a related entity called Price (via relationship manager). I want to call an external service when a Price is updated, how can I do that? thanks!
12 replies
FFilament
Created by Ahmad on 9/14/2023 in #❓┊help
How to call a function in another service on saving a form record?
I want to call a function after saving a form record. How can I do that?
7 replies