src/ConcatenatesRelationships.php
protected function hasOneOrManyDeepFromMorphOneOrMany(MorphOneOrMany $relation, array $through, array $foreignKeys, array $localKeys)
    {
        $foreignKeys[] = [$relation->getQualifiedMorphType(), $relation->getQualifiedForeignKeyName()];

        $localKeys[] = $relation->getLocalKeyName();

        return [$through, $foreignKeys, $localKeys];
    }
protected function hasOneOrManyDeepFromMorphOneOrMany(MorphOneOrMany $relation, array $through, array $foreignKeys, array $localKeys)
    {
        $foreignKeys[] = [$relation->getQualifiedMorphType(), $relation->getQualifiedForeignKeyName()];

        $localKeys[] = $relation->getLocalKeyName();

        return [$through, $foreignKeys, $localKeys];
    }
protected function hasOneOrManyDeepFromMorphOneOrMany ( MorphOneOrMany $ relation , array $ through , array $ foreignKeys , array $ localKeys ) { $ foreignKeys [ ] = [ $ relation -> getQualifiedMorphType ( ) , $ relation -> getQualifiedForeignKeyName ( ) ] ; $ localKeys [ ] = $ relation -> getLocalKeyName ( ) ; return [ $ through , $ foreignKeys , $ localKeys ] ; }
Prepare a has-one-deep or has-many-deep relationship from an existing morph-one or morph-many relationship.

@param  \Illuminate\Database\Eloquent\Relations\MorphOneOrMany  $relation
@param  \Illuminate\Database\Eloquent\Model[]  $through
@param  array  $foreignKeys
@param  array  $localKeys
@return array
Prepare a has - one - deep or has - many - deep relationship from an existing morph - one or morph - many relationship .