code: public function whereSubQuery($column, $query, $boolean = 'and')
      {
          list($type, $operator) = ['Sub', 'in'];
  
          $this->wheres[] = compact('type', 'column', 'operator', 'query', 'boolean');
  
          $this->addBinding($query->getBindings(), 'where');
  
          return $this;
      }
docs: Add a full sub-select to the query.
  
  @param string $column
  @param \Illuminate\Database\Query\Builder $query
  @param string $boolean
  @return $this