interface LengthAwarePaginator implements Paginator (View source)
string | url(int $page) Get the URL for a given page. | from Paginator |
$this | appends(array|string $key, string|null $value = null) Add a set of query string values to the paginator. | from Paginator |
$this|string | fragment(string|null $fragment = null) Get / set the URL fragment to be appended to URLs. | from Paginator |
string|null | nextPageUrl() The URL for the next page, or null. | from Paginator |
string|null | previousPageUrl() Get the URL for the previous page, or null. | from Paginator |
array | items() Get all of the items being paginated. | from Paginator |
int | firstItem() Get the "index" of the first item being paginated. | from Paginator |
int | lastItem() Get the "index" of the last item being paginated. | from Paginator |
int | perPage() Determine how many items are being shown per page. | from Paginator |
int | currentPage() Determine the current page being paginated. | from Paginator |
bool | hasPages() Determine if there are enough items to split into multiple pages. | from Paginator |
bool | hasMorePages() Determine if there is more items in the data store. | from Paginator |
bool | isEmpty() Determine if the list of items is empty or not. | from Paginator |
bool | isNotEmpty() Determine if the list of items is not empty. | from Paginator |
string | render(string|null $view = null, array $data = []) Render the paginator using a given view. | from Paginator |
array | getUrlRange(int $start, int $end) Create a range of pagination URLs. | |
int | total() Determine the total number of items in the data store. | |
int | lastPage() Get the page number of the last available page. |
Get the URL for a given page.
Add a set of query string values to the paginator.
Get / set the URL fragment to be appended to URLs.
The URL for the next page, or null.
Get the URL for the previous page, or null.
Get all of the items being paginated.
Get the "index" of the first item being paginated.
Get the "index" of the last item being paginated.
Determine how many items are being shown per page.
Determine the current page being paginated.
Determine if there are enough items to split into multiple pages.
Determine if there is more items in the data store.
Determine if the list of items is empty or not.
Determine if the list of items is not empty.
Render the paginator using a given view.
Create a range of pagination URLs.
Determine the total number of items in the data store.
Get the page number of the last available page.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Contracts/Pagination/LengthAwarePaginator.html