Shows how to implement drag-and-drop reordering with automatic position assignment for new records and auto-reordering when records are deleted.
The main ordering is defined in the CategoriesTable
using defaultSort
and reorderable
for the position
column.
->defaultSort('position')->reorderable('position')
app/Filament/Resources/Categories/Tables/CategoriesTable.php
return $table ->columns([ TextColumn::make('name'),// ...