diff --git a/src/HasParent.php b/src/HasParent.php index e4251c3..7205b5d 100644 --- a/src/HasParent.php +++ b/src/HasParent.php @@ -103,12 +103,9 @@ public function getClassNameForRelationships() */ public function getMorphClass() { - if ($this->parentHasHasChildrenTrait()) { - $parentClass = $this->getParentClass(); - return (new $parentClass)->getMorphClass(); - } + $parentClass = $this->getParentClass(); - return parent::getMorphClass(); + return (new $parentClass)->getMorphClass(); } /**