© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Wein

Custom Action in RelationManager with current record injection

Hello, I can't inject the current record in edit when I use a custom action. Could you please give me an idea?

Thank you for your help.

Here is the code:

public function table(Table $table): Table
{
return $table
->recordTitleAttribute('name')
->columns([
Tables\Columns\TextColumn::make('first_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('last_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('email')->searchable()->sortable(),
Tables\Columns\TextColumn::make('created_at')->sortable(),
Tables\Columns\TextColumn::make('updated_at')->sortable()
])
->filters([
//
])
->headerActions([
// Tables\Actions\CreateAction::make(),
Tables\Actions\Action::make('export')
->label('Export CSV')
->action(function($record) {
dd($record);
})
])
->actions([
Tables\Actions\EditAction::make(),
// Tables\Actions\DeleteAction::make(),
])
->bulkActions([
/Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
/
])
->emptyStateActions([
// Tables\Actions\CreateAction::make(),
]);
}
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

Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago
Current record in custom page ?
FilamentFFilament / ❓┊help
3y ago
Updating record with custom action
FilamentFFilament / ❓┊help
2y ago
Custom Rule - Current record?
FilamentFFilament / ❓┊help
16mo ago