Mads Møller
Mads Møller
FFilament
Created by Mads Møller on 1/14/2024 in #❓┊help
tracking user behavior?
I’m tracking user behavior and would like to hook into filament for the following events: - page viewed - page action used - table searched - table filter viewed - table paginated - table action used - dashboard filtered - widget interacted Ive looked into InteractsWithTable and ExposesTableToWidgets but not sure its the right place. My challenge is to hook into filters and action in a good way so I don’t have to extend every build in action/filter with a custom class that tracks. Is there any hooks available or other way to listen to these user events like Observers?
2 replies
FFilament
Created by Mads Møller on 11/3/2023 in #❓┊help
testing panels in pest?
I have 2 panels with admin as the default panel. now, when I want to write tests for the App Panel, then im facing problems. 1. the routes are not correct SomeResource::getUrl() returns an admin route and not a App route. 2. If I use a route() instead, then the $tenant url parameter is missing. Is there any nice way to test the non default panel in filament without writing tons of pest setup code?
8 replies
FFilament
Created by Mads Møller on 10/27/2023 in #❓┊help
Model Policies for only 1 panel?
When using the multi-tenency feature, I often want to use the Model policies to define is a user role can do requested action - however some models are shared between "admin" and "app" like users, tenants etc. is there a way to disable policies in one of the panels or use a seperate set of policies?
1 replies
FFilament
Created by Mads Møller on 10/12/2023 in #❓┊help
multi tenant custom routes
When using the multi tenant feature in v3, then I’m missing from the docs best practice on handling custom routes/views. The panel ->tenant() will automatically set the tenant and infer a tenant scope, but when building a custom route, then is there a middleware that handles setting the tenant scope?
2 replies