© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
ShortlyPortly1964

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
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([
                //
            ]);
    }
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).
Jump to solution
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

Custom Page Table Method Edit Action passing Current Record
FilamentFFilament / ❓┊help
13mo ago
Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago
Passing an ID to a custom edit action
FilamentFFilament / ❓┊help
3y ago
Custom Action in RelationManager with current record injection
FilamentFFilament / ❓┊help
3y ago