© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
11 replies
Soundmit

Update rows in table (or table) after action on row

i have custom action to reorder categories in my plugin
the db is updated but the ui/table not
any idea?
```
->actions([
Tables\Actions\ActionGroup::make([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('moveUp')
->label('Move Up')
->icon('heroicon-o-chevron-up')
->color('success')
->requiresConfirmation()
->action(function (Category $record, $livewire): void {
$query = Category::query()
->where('parent_id', $record->parent_id)
->where('sort_order', '<', $record->sort_order)
->orderBy('sort_order', 'desc');

if ($swapRecord = $query->first()) {
$tempOrder = $record->sort_order;
$record->update(['sort_order' => $swapRecord->sort_order]);
$swapRecord->update(['sort_order' => $tempOrder]);
}
$livewire->getTableRecords()->fresh();
}),
...
])
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Export Action - Update Table Rows
FilamentFFilament / ❓┊help
3y ago
Export action update table rows after successful export
FilamentFFilament / ❓┊help
3y ago
Table update after action
FilamentFFilament / ❓┊help
2y ago
Action on click row table
FilamentFFilament / ❓┊help
2y ago