© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Pixl

Cast Problem on Pivot table together with RelationManager

I use a Repeater field in my RelationManager and have setup a Pivot class for this table which should cast the repeater field to an Array. Sadly whenever i want to edit the relation that i saved with repeater data to beforehand, it will give me the error "foreach() argument must be of type array|object, string given". I have casted it on the Pivot table, tried multiple ways on the merged Models aswell, it won't do anything.
It's also wrongly casted via tinker, seen in the Screenshot.
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

HasMany Table Relationship pivot/group RelationManager
FilamentFFilament / ❓┊help
2y ago
problem saving pivot table
FilamentFFilament / ❓┊help
3y ago
repeated pivot table records displaying incorrectly in relationmanager table
FilamentFFilament / ❓┊help
7mo ago