protected function whereSub(Builder $query, $where)
    {
        $select = $this->compileSelect($where['query']);

        return $this->wrap($where['column']).' '.$where['operator']." ($select)";
    }
protected function whereSub(Builder $query, $where)
    {
        $select = $this->compileSelect($where['query']);

        return $this->wrap($where['column']).' '.$where['operator']." ($select)";
    }
protected function whereSub ( Builder $ query , $ where ) { $ select = $ this -> compileSelect ( $ where [ 'query' ] ) ; return $ this -> wrap ( $ where [ 'column' ] ) . ' ' . $ where [ 'operator' ] . " ($select)" ; }
Compile a where condition with a sub-select.

@param  \Illuminate\Database\Query\Builder $query
@param  array   $where
@return string
Compile a where condition with a sub - select .