src/BaseRepositoryEloquent.php
protected function queryHasRelations($query, $hasRelations = [])
    {
        $hasRelations = $hasRelations ?: $this->hasRelations;

        foreach ($hasRelations as $relation => $operatorCount) {
            list($operator, $count) = $operatorCount;
            $query->has($relation, $operator, $count);
        }

        return $query;
    }
protected function queryHasRelations($query, $hasRelations = [])
    {
        $hasRelations = $hasRelations ?: $this->hasRelations;

        foreach ($hasRelations as $relation => $operatorCount) {
            list($operator, $count) = $operatorCount;
            $query->has($relation, $operator, $count);
        }

        return $query;
    }
protected function queryHasRelations ( $ query , $ hasRelations = [ ] ) { $ hasRelations = $ hasRelations ? : $ this -> hasRelations ; foreach ( $ hasRelations as $ relation => $ operatorCount ) { list ( $ operator , $ count ) = $ operatorCount ; $ query -> has ( $ relation , $ operator , $ count ) ; } return $ query ; }
Query has relations.

@param  \Illuminate\Database\Eloquent\Builder $query
@param  array                                 $hasRelations
@return \Illuminate\Database\Eloquent\Builder
Query has relations .