src/BaseRepositoryEloquent.php
public function has($relation, $operator = '>=', $count = 1)
    {
        $this->hasRelations[$relation] = [$operator, $count];

        return $this;
    }
public function has($relation, $operator = '>=', $count = 1)
    {
        $this->hasRelations[$relation] = [$operator, $count];

        return $this;
    }
public function has ( $ relation , $ operator = '>=' , $ count = 1 ) { $ this -> hasRelations [ $ relation ] = [ $ operator , $ count ] ; return $ this ; }
Query model if it has a given relation.

@param  string $relation
@param  string $operator
@param  int    $count
@return $this
Query model if it has a given relation .