© 2026 Hedgehog Software, LLC

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

Accessing related $record(s) in hasMany repeaters

Hi all

I have a repeater that uses a hasMany relationship (via a pivot model). I need to access each item's record inside the header action closures. Any idea how I can do that?

Thanks!
Solution
If it’s before the record is saved you have to get it from the form state, if not it already exists on the record via the relationship.
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

Include latest hasMany record in table
FilamentFFilament / ❓┊help
3y ago
Access Top Record within Repeaters
FilamentFFilament / ❓┊help
3y ago
Filament Manage Related with hasMany and hasMany with Repeater
FilamentFFilament / ❓┊help
3y ago
Problem in accessing widget current record
FilamentFFilament / ❓┊help
2y ago