Document group_by.
This commit is contained in:
parent
0339a3276b
commit
2827c3fc78
|
@ -9,6 +9,7 @@ ## Contents
|
|||
- [Dynamic Where Clauses](#dynamic)
|
||||
- [Table Joins](#joins)
|
||||
- [Ordering Results](#ordering)
|
||||
- [Grouping Results](#grouping)
|
||||
- [Skip & Take](#limit)
|
||||
- [Aggregates](#aggregates)
|
||||
- [Expressions](#expressions)
|
||||
|
@ -185,6 +186,13 @@ ## Ordering Results
|
|||
->order_by('name', 'asc')
|
||||
->get();
|
||||
|
||||
<a name="grouping"></a>
|
||||
## Grouping Results
|
||||
|
||||
You can easily group the results of your query using the **group_by** method:
|
||||
|
||||
return DB::table(...)->group_by('email')->get();
|
||||
|
||||
<a name="limit"></a>
|
||||
## Skip & Take
|
||||
|
||||
|
|
Loading…
Reference in New Issue