$query->group()
Attaches a group by clause
$query->group(string|null $group = null): Kirby\Database\Query
Parameters
| Name | Type | Default |
|---|---|---|
| $group | stringornull |
null
|
Return type
This method modifies the existing $query object it is applied to and returns it again.