© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
14 replies
slamx_

Table Action always the same record

I have the problem that my custom callback for the Action table always uses the first record. How can I fix this?

Action::make('edit')
                ->action(function (UserItem $record): void {  
                    $this->emit('doEmitCallback', [
                        'file' => $record->id
                    ]);
                })
                ->color('secondary')
                ->icon('heroicon-s-pencil'),
Action::make('edit')
                ->action(function (UserItem $record): void {  
                    $this->emit('doEmitCallback', [
                        'file' => $record->id
                    ]);
                })
                ->color('secondary')
                ->icon('heroicon-s-pencil'),
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

RelationManager table action always injects the same record
FilamentFFilament / ❓┊help
16mo ago
Injected $record the same for each recordActions Action
FilamentFFilament / ❓┊help
4w ago
Dispatch Table Record Action
FilamentFFilament / ❓┊help
3mo ago
Table recordActions / Action condition
FilamentFFilament / ❓┊help
8mo ago