Attach action error in RelationManager
I am getting below error during Select search while performing Attach action in header of Relationship manager. I have BusinessCategory model with N:N relationship with itself. My model has parents() and children() methods. Currently it is only two level. And I using using simple Attach action in the Header.
4 Replies
It's looking for the relationship businessCategories on the Model BusinessCategory
You probably need to define
$inverseRelationship
property when you have non-common relationship namesAgree.
Hi @Dennis Koch . i tried But i still get error Call to undefined method Illuminate\Database\Eloquent\Builder::getRelated(). I am writing custom Attach action now.
What's
self
in this context? Because this is not a relationship 🤔