You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Call to undefined method immediateDescendants() #326
// /**
// * Inmmediate descendants relation. Alias for "children".
// *
// * @return \Illuminate\Database\Eloquent\Relations\HasMany
// */
// public function immediateDescendants()
// {
// return $this->children();
// }
// /**
// * Attribute alias so as to eager-load the proper relationship.
// *
// * @return mixed
// */
// public function getImmediateDescendantsAttribute()
// {
// return $this->getRelationValue('children');
// }
the way i was able to get around this challenges were to override that function or rather duplicate it into my own class that inherited the Buam/Node by doing this below.
/** * Inmmediate descendants relation. Alias for "children". * * @return \Illuminate\Database\Eloquent\Relations\HasMany */publicfunctionimmediateDescendants()
{
return$this->children();
}
Activity