Skip to content

Commit

Permalink
Add limit method to the query builder docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlbarnes authored Sep 7, 2016
1 parent b802468 commit 23867f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,14 @@ The `havingRaw` method may be used to set a raw string as the value of the `havi
->havingRaw('SUM(price) > 2500')
->get();

#### limit

The `limit` method may be used to return a specified number of results. For example, we can find the first 10 rows in our users table:

$users = DB::table('users')
->limit(10)
->get();
#### skip / take

To limit the number of results returned from the query, or to skip a given number of results in the query, you may use the `skip` and `take` methods:
Expand Down

0 comments on commit 23867f2

Please sign in to comment.