© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
rich06

Get parent record in Relationship Manager

Hi, I am building the create/edit form in a relationship manager and I need to create a Select dropdown list of rows that are related to the parent row. How do I access the parent row in the form section of a relationship manager?
Solution
i don't know where do you want to use that, but since you've mentioned 'Select', probably in the

->options(fn ($livewire) => YourModel::where('parent_id', $livewire->ownerRecord->id)->pluck(...))
->options(fn ($livewire) => YourModel::where('parent_id', $livewire->ownerRecord->id)->pluck(...))
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

Access parent $record in relation manager
FilamentFFilament / ❓┊help
2y ago
Refresh parent on relationship manager update
FilamentFFilament / ❓┊help
2y ago
TextColumn get relationship record
FilamentFFilament / ❓┊help
2y ago
Get URL for record in relation manager
FilamentFFilament / ❓┊help
2y ago