public function whereHas($relation)
    {
        if ( ! is_array($relation)) {
            $relation = func_get_args();
        }

        $this->whereHas[] = $relation;

        return $this;
    }
public function whereHas($relation)
    {
        if ( ! is_array($relation)) {
            $relation = func_get_args();
        }

        $this->whereHas[] = $relation;

        return $this;
    }
public function whereHas ( $ relation ) { if ( ! is_array ( $ relation ) ) { $ relation = func_get_args ( ) ; } $ this -> whereHas [ ] = $ relation ; return $ this ; }
Adds an array of whereHas queries

@param $relation
@return $this
Adds an array of whereHas queries