protected function whereInExistingQuery($column, $query, $boolean, $not)
    {
        $type = $not ? 'NotInSub' : 'InSub';

        $this->wheres[] = compact('type', 'column', 'query', 'boolean');

        $this->addBinding($query->getBindings(), 'where');

        return $this;
    }
protected function whereInExistingQuery($column, $query, $boolean, $not)
    {
        $type = $not ? 'NotInSub' : 'InSub';

        $this->wheres[] = compact('type', 'column', 'query', 'boolean');

        $this->addBinding($query->getBindings(), 'where');

        return $this;
    }
protected function whereInExistingQuery ( $ column , $ query , $ boolean , $ not ) { $ type = $ not ? 'NotInSub' : 'InSub' ; $ this -> wheres [ ] = compact ( 'type' , 'column' , 'query' , 'boolean' ) ; $ this -> addBinding ( $ query -> getBindings ( ) , 'where' ) ; return $ this ; }
Add an external sub-select to the query.

@param  string   $column
@param  \Illuminate\Database\Query\Builder|static  $query
@param  string   $boolean
@param  bool     $not
@return $this
Add an external sub - select to the query .