SeanKiwi (Semantics)
Multi-tenancy -> Navigation Badge count is querying for all tenants instead of just selected tenant.
Hi Guys, I have multi-tenancy configured with global scopes so the navigation badge count is showing the correct value, however if we have an admin who can access many tenants we run into time outs or extremely long loads, checking debug bar we can see that the system is trying to query count for each tenant the user has access to instead of just the currently selected tenant.
Fyi - we also have the below on the resource
public static function getNavigationBadge(): ?string
{
$tenant = Filament::getTenant();
return static::getModel()::where('cw_customer_id', $tenant->cw_id)->count();
}
Any suggestions on this one?
10 replies
Change redirect path after session expires
Hey Guys, I have got the redirect to work for manual logouts to go to /login instead of /filament/login. However if the users session expires it still takes them to /filament/login instead of /login.
Anyone point me in the right direction to change this behavior?
6 replies