Skip to content

Commit

Permalink
[10.x] Added getQualifiedMorphTypeName to MorphToMany (#50153)
Browse files Browse the repository at this point in the history
It is in addition to qualified names for MorphToMany relations.
  • Loading branch information
dkulyk committed Feb 20, 2024
1 parent 0804e5f commit 4e19d4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
Expand Up @@ -189,6 +189,16 @@ public function getMorphType()
return $this->morphType;
}

/**
* Get the fully qualified morph type for the relation.
*
* @return string
*/
public function getQualifiedMorphTypeName()
{
return $this->qualifyPivotColumn($this->morphType);
}

/**
* Get the class name of the parent model.
*
Expand Down

0 comments on commit 4e19d4e

Please sign in to comment.