Custom Action in Table
I am trying to create a custom Action, however I am unable to retrieve the record that I clicked on. What am I doing wrong?
File: FormSubmissionResource::table()
File: FormSubmissionResource::table()
->actions([
Tables\Actions\Action::make('import')
->label('Import')
->icon('heroicon-o-cloud-upload')
->action(function ($data) {
dd($data); // => []
})