© 2026 Hedgehog Software, LLC

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

Getting owner record in custom association action

Hello all,

I have a book and story tables with a pivot table between the two. I have relationship manager to handle associating and dissociating books and stories. But the pivot table also has other data that needs to be entered when creating an association (order).
So I have overridden the form for the associate action like so:
         Tables\Actions\AssociateAction::make()
                    ->form([
                        Forms\Components\Select::make('story_id')->options(Story::query()->pluck('name', 'id'))->required()->label('Story'),
                        Forms\Components\TextInput::make('order')->numeric()->required()->label('Order'),
                    ]),
         Tables\Actions\AssociateAction::make()
                    ->form([
                        Forms\Components\Select::make('story_id')->options(Story::query()->pluck('name', 'id'))->required()->label('Story'),
                        Forms\Components\TextInput::make('order')->numeric()->required()->label('Order'),
                    ]),

I am now trying to save all this stuff, but I cannot seem to retrieve the Book I'm currently editing inside the action. Is there a way to do so?
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

owner record
FilamentFFilament / ❓┊help
2y ago
Bind $record in a custom action
FilamentFFilament / ❓┊help
3y ago
Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago
Updating record with custom action
FilamentFFilament / ❓┊help
2y ago