src/Constraints/Builder.php
protected function whereNested($logicalOperator, Closure $callback)
    {
        $callback($builder = new static);

        $constraint = $builder->build()->logicalOperator($logicalOperator);

        return $this->addConstraint($constraint);
    }
protected function whereNested($logicalOperator, Closure $callback)
    {
        $callback($builder = new static);

        $constraint = $builder->build()->logicalOperator($logicalOperator);

        return $this->addConstraint($constraint);
    }
protected function whereNested ( $ logicalOperator , Closure $ callback ) { $ callback ( $ builder = new static ) ; $ constraint = $ builder -> build ( ) -> logicalOperator ( $ logicalOperator ) ; return $ this -> addConstraint ( $ constraint ) ; }
Add a nested "where" clause.

@param  string  $logicalOperator  'and'|'or'
@param  \Closure  $callback
@return $this
Add a nested where clause .