Pagination
class Pagination (View source)
Methods
__construct(int $next, int $previous, int $total, int $perPage, int $current, Collection $data)
Pagination constructor.
int
next()
Get the next page number.
bool
hasNext()
Check if there is a next page.
int
perPage()
Get the number of items per page.
int
previous()
Get the previous page number.
bool
hasPrevious()
Check if there is a previous page.
int
current()
Get the current page number.
Collection
items()
Get the collection of items for the current page.
int
total()
Get the total number of items.
Details
__construct(int $next, int $previous, int $total, int $perPage, int $current, Collection $data)
Pagination constructor.
int
next()
Get the next page number.
bool
hasNext()
Check if there is a next page.
int
perPage()
Get the number of items per page.
int
previous()
Get the previous page number.
bool
hasPrevious()
Check if there is a previous page.
int
current()
Get the current page number.
Collection
items()
Get the collection of items for the current page.
int
total()
Get the total number of items.