FilamentF
Filament3y ago
btx

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()

 ->actions([
    Tables\Actions\Action::make('import')
       ->label('Import')
       ->icon('heroicon-o-cloud-upload')
       ->action(function ($data) {
          dd($data); // => []
       })
Was this page helpful?