Call to undefined method BelongsToThrough::associate()
Hi,
I am new here so sorry if i don't do all the steps right.
I have 3 models, City, Zone, Country
A city belongs to a zone and a zone belongs to a country
I am trying to create a city add form since Laravel is not offering support for BelongsToThrough i pulled in the staudenmeir/belongs-to-through (as recomandate in Filamentphp documentation).
All is ok on view and list, but on update and create i have this error Znck\Eloquent\Relations\BelongsToThrough::associate(), and this is normal since the BelongsToThrough dosen't have the associate() function on it.
my form has this inputs/selects:
Has anyone run into this problem ? How did you fix it ?
Thank you!
5 Replies
Hello, i have the same problem. Can anyone else fix it... 😩
pay money if you want someone to "fix it" for you
pay to whom?
can you help me?
@KodyXgen @raya Did you guys ever figure this
BelongsToThrough::associate()
error out yet? I'm struggling with this one.in select.php of forms/src/Components/ add below code:
if ($relationship instanceof \Znck\Eloquent\Relations\BelongsToThrough) {
return;
}