F
Filamentβ€’16mo ago
Carlo

Tenancy trigger an action when navigating to different teams?

How can I update the currently selected team's updated_at?
2 Replies
Patrick Boivin
Patrick Boivinβ€’16mo ago
I'm not sure there's an easy way to do this... I don't see a clear way of detecting the tenant change. Maybe in a custom middleware, you could observe the changes on the tenant route parameter? Actually yes, there is a TenantSet event specifically for this https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/FilamentManager.php#L645
Carlo
CarloOPβ€’16mo ago
Thanks for the response. I'll look into it πŸ™‚
Want results from more Discord servers?
Add your server