public function whereNested(Closure $callback, $logic = '$and') { $type = 'Nested'; $query = $this->newQuery(); call_user_func($callback, $query); if (count($query->wheres)) { $this->wheres[] = compact('type', 'query', 'logic'); } return $this; }