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'),