F
Filament12mo ago
dascorp

global scopes ignored on grouping

Hi, I observed that when I use https://filamentphp.com/docs/3.x/tables/grouping, the model's global scopes are not applied when a different grouping is selected, and all records are visible - I apply scopes in middleware. Is this intentional, or should I move global scopes somewhere else?
1 Reply
dascorp
dascorpOP12mo ago
I looked into it here: https://filamentphp.com/docs/3.x/panels/configuration#applying-middleware-to-authenticated-routes and cannot understand why the default is counterintuitive and "off" on subsequent Livewire AJAX requests; this even affect sorting where middleware is not applied, and all records are pulled for the model.
Want results from more Discord servers?
Add your server