protected function newHasMany(Builder $query, Model $parent, $foreignKey, $localKey)
    {
        return new HasMany($query, $parent, $foreignKey, $localKey);
    }
protected function newHasMany(Builder $query, Model $parent, $foreignKey, $localKey)
    {
        return new HasMany($query, $parent, $foreignKey, $localKey);
    }
protected function newHasMany ( Builder $ query , Model $ parent , $ foreignKey , $ localKey ) { return new HasMany ( $ query , $ parent , $ foreignKey , $ localKey ) ; }
Instantiate a new HasMany relationship.

@param  \Illuminate\Database\Eloquent\Builder  $query
@param  \Illuminate\Database\Eloquent\Model  $parent
@param  string  $foreignKey
@param  string  $localKey
@return \Illuminate\Database\Eloquent\Relations\HasMany
Instantiate a new HasMany relationship .