diff --git a/eloquent.md b/eloquent.md index 8c92e4d50cc..acea301ef73 100644 --- a/eloquent.md +++ b/eloquent.md @@ -431,7 +431,7 @@ The Eloquent `all` method will return all of the results in the model's table. H ```php $flights = Flight::where('active', 1) ->orderBy('name') - ->take(10) + ->limit(10) ->get(); ``` diff --git a/queries.md b/queries.md index eaf8230ba6b..02053a8f1f8 100644 --- a/queries.md +++ b/queries.md @@ -1210,16 +1210,7 @@ To build more advanced `having` statements, see the [havingRaw](#raw-methods) me ### Limit and Offset - -#### The `skip` and `take` Methods - -You may use the `skip` and `take` methods to limit the number of results returned from the query or to skip a given number of results in the query: - -```php -$users = DB::table('users')->skip(10)->take(5)->get(); -``` - -Alternatively, you may use the `limit` and `offset` methods. These methods are functionally equivalent to the `take` and `skip` methods, respectively: +You may use the `limit` and `offset` methods to limit the number of results returned from the query or to skip a given number of results in the query: ```php $users = DB::table('users')