Available for select projects New York · Working worldwide
Rappasoft LLC
Menu

Laravel Livewire Tables / Documentation / v2

Saving

Installation, configuration, and usage guidance maintained with the project.

When a row is moved, the table will call your reorder method on the component with the current order of the entire table:

1public function reorder($items): void
2{
3 foreach ($items as $item) {
4 User::find((int)$item['value'])->update(['sort' => (int)$item['order']]);
5 }
6}