© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Raj Siva-Rajah

Access parent $record in relation manager

Hi all

Does anyone know how to access the parent $record in a relation manager? I have an attach action that I need to scope using a parent attribute. Have tried this but $record is null:

Tables\Actions\AttachAction::make()
   ->recordSelectOptionsQuery(function (Builder $query, Model $record) {
     }
Tables\Actions\AttachAction::make()
   ->recordSelectOptionsQuery(function (Builder $query, Model $record) {
     }
Solution
Or
$livewire->ownerRecord
$livewire->ownerRecord
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

Current record in relation manager
FilamentFFilament / ❓┊help
3y ago
Access parent record in RepeatableEntry
FilamentFFilament / ❓┊help
3y ago
relation manager record information
FilamentFFilament / ❓┊help
2y ago
Get parent record in Relationship Manager
FilamentFFilament / ❓┊help
3y ago