FilamentF
Filament11mo ago
core

Reordering and Observers

what's the trick to triggerng an observer from a filament table : ->reorderable('sort'); ? I need to clear cache on reordering items. I set an Observer but the updating of sort records is not triggering the models observer
Solution
Instead of triggerring an event, override the method returning the parent then handle your after event changes i.e.


https://github.com/filamentphp/filament/discussions/6619
GitHub
Perchance, is it possible to set up an event after reordering a table with ->reorderable()? Or maybe pass a Closure that in some way is executed after reordering?
Was this page helpful?