code: public function group($group)
      {
          if (!is_array($group)) {
              $this->group = array($group);
          } else {
              $this->group = $group;
          }
  
          return $this;
      }
docs: Add grouping to query