Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tuananhnghiem committed Sep 9, 2019
1 parent ecc79a4 commit ec1c3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ DB::table('orders')->groupBy('country')->sum('amount')
DB::table('orders')->count()
DB::table('customers')->groupBy('state')
->avg('income')->as('avgIncome')
->avg('income')->alias('avgIncome')
```

## Sub query table
Expand Down Expand Up @@ -215,7 +215,7 @@ The `havingRaw` and `orHavingRaw` methods may be used to set a raw string as the
```
DB::table('orders')
->select('department')
->sum('price')->as('total_sales')
->sum('price')->alias('total_sales')
->groupBy('department')
->havingRaw('SUM(price) > 2500')
```
Expand Down

0 comments on commit ec1c3d7

Please sign in to comment.