Limit, Offset, and Pagination
limit
Sets the limit value for the query.
take
Sets the limit value for the query. Alias for limit
.
offset
Sets the offset value for the query.
forPage
Helper method to calculate the limit and offset given a page number and count per page.
simplePaginate & paginate
This method combines forPage
, count
, and get
to create a pagination struct alongside the results. Information on the simplePaginate
or paginate
methods, including custom pagination collectors, can be found in the Retreiving Results section of the documentation.