Passing the current record to an Action

Hi. I'm new to Filament but think it is an amazing piece of software. I'm struggling with something that I think "should" be possible but I've just hit a wall. I have a Nursery Resource that defines an action select
public static function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('name'),

            ])
            ->filters([
                //
            ])
            ->actions([
                Tables\Actions\EditAction::make(),
                Tables\Actions\Action::make('select')
                    ->action('select')
            ])
            ->bulkActions([
                //
            ]);
    }


When I hit 'select' is does indeed call the correct funtion in ListNuerseries.php BUT I cannot for the life of me see how to pass the current record. I'm sure I'm doing something daft but any help would be appreciated.
Solution
To answer my own question. It turned out to be quite logical (as most things seem to be with Filament).
Was this page helpful?