Attach and Detach issue
I have an issue where I countries which has many orgnazations.
Issue is when I try to detach it it gives me this error
Solution:Jump to solution
You probably need to set
$inverseRelationship
property on the RM to "country"
13 Replies
HasMany
is disassociate and not detach, isn't it?Tried a assiciate too, then it just referes to the other model.
The Org model has a belongsto and function called Country not countries
Solution
You probably need to set
$inverseRelationship
property on the RM to "country"
When in attach or Assosicate?
Neither. Relation Manager
oh heck me your right
Thank you very much, still learning filament π
Thanks π
I have an additional issue if you don't mind.. π
I'm trying to show users under orgs with attach.
I'm having difficulties getting their role from OrgUser table..
You can't pass an argument to a relationship
Fix your Laravel relationship first. Then connect it to Filament
I don't think you need a
wherePivot