© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
John Wink

Eager Loaded Pivot not working

If it is a BelongsToMany relationship, no pivot values are displayed in the repeater, only the values from the related model.
If you try in the Filament\Forms\Components\Repeater Component at the time 1036 first:
return ["record-{$item[$relatedKeyName]}"=>$item->pivot ?? $item];
return ["record-{$item[$relatedKeyName]}"=>$item->pivot ?? $item];

then it works (the values from the related model are missing here, but actually the pivot values should also be loaded and not the other way round.

Any ideas here? Otherwise I would capture this bug, create a demo repository and create a pull request with my solution.
image.png
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

Problem: Exporter Not Working with Eager-Loaded Relationships
FilamentFFilament / ❓┊help
13mo ago
Eager loaded relationships filter
FilamentFFilament / ❓┊help
2y ago
Eager loaded relationship not updating after component action called
FilamentFFilament / ❓┊help
6mo ago
Eager loaded relationship based on table filter
FilamentFFilament / ❓┊help
3y ago