bionary
Is it possible to hook to the table reorder event, when someone clicks the tick after reordering?
For anyone looking to fire the Spatie table sorting event like I was, here is some working code:
(this is for a relation-manager)
I have no idea if this is the best way to do this, but the
EloquentModelSortedEvent
is fired.
I removed parent::reorderTable($order, $draggedRecordKey);
because then the update queries are unnecessarily run twice.9 replies
Is it possible to hook to the table reorder event, when someone clicks the tick after reordering?
Still no hook in 2025? It's frustrating because when using Spatie Elequent-Sortable, that package's ::newSortOrder() never gets triggered by Filament so we can't listen for the table sorting event on completion. Feature Request?!? @Dan Harrin
So I tried to hook into a model event with ... ->wasChanged('order_column') doesn't work either, so it's impossible to work with table sorting events.
9 replies
form->fill()`with Selects?
@Dennis Koch oh sweet. Working with Wordpress is a nightmare. Doing the simplest things (for example: adding images) will make anyone want to jump off a building. I had to build a custom Wordpress plugin just to handle areas where the awful, antiquated and often incomplete WordPress API documentation falls short.
85 replies