protected function newMorphToMany(Builder $query, Model $parent, $name, $table, $foreignPivotKey,
                                      $relatedPivotKey, $parentKey, $relatedKey,
                                      $relationName = null, $inverse = false)
    {
        return new MorphToMany($query, $parent, $name, $table, $foreignPivotKey, $relatedPivotKey, $parentKey, $relatedKey,
            $relationName, $inverse);
    }
protected function newMorphToMany(Builder $query, Model $parent, $name, $table, $foreignPivotKey,
                                      $relatedPivotKey, $parentKey, $relatedKey,
                                      $relationName = null, $inverse = false)
    {
        return new MorphToMany($query, $parent, $name, $table, $foreignPivotKey, $relatedPivotKey, $parentKey, $relatedKey,
            $relationName, $inverse);
    }
protected function newMorphToMany ( Builder $ query , Model $ parent , $ name , $ table , $ foreignPivotKey , $ relatedPivotKey , $ parentKey , $ relatedKey , $ relationName = null , $ inverse = false ) { return new MorphToMany ( $ query , $ parent , $ name , $ table , $ foreignPivotKey , $ relatedPivotKey , $ parentKey , $ relatedKey , $ relationName , $ inverse ) ; }
Instantiate a new MorphToMany relationship.

@param  \Illuminate\Database\Eloquent\Builder  $query
@param  \Illuminate\Database\Eloquent\Model  $parent
@param  string  $name
@param  string  $table
@param  string  $foreignPivotKey
@param  string  $relatedPivotKey
@param  string  $parentKey
@param  string  $relatedKey
@param  string  $relationName
@param  bool  $inverse
@return \Illuminate\Database\Eloquent\Relations\MorphToMany
Instantiate a new MorphToMany relationship .