From 5aed1685b26f53ca62061c9237ce35e593b80296 Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 8 Apr 2025 08:19:08 -0500 Subject: [PATCH 1/2] Update pagination.md `onLastPage()` is available to the `LengthAwarePaginator` as well, via the `AbstractPaginator` class. --- pagination.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pagination.md b/pagination.md index 42c6ac57ada..d84b9634b29 100644 --- a/pagination.md +++ b/pagination.md @@ -376,6 +376,7 @@ Each paginator instance provides additional pagination information via the follo | `$paginator->lastPage()` | Get the page number of the last available page. (Not available when using `simplePaginate`). | | `$paginator->nextPageUrl()` | Get the URL for the next page. | | `$paginator->onFirstPage()` | Determine if the paginator is on the first page. | +| `$paginator->onLastPage()` | Determine if the paginator is on the last page. | | `$paginator->perPage()` | The number of items to be shown per page. | | `$paginator->previousPageUrl()` | Get the URL for the previous page. | | `$paginator->total()` | Determine the total number of matching items in the data store. (Not available when using `simplePaginate`). | From 55bface62eda01d7d5385a8e42435867c3d14919 Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 8 Apr 2025 08:21:27 -0500 Subject: [PATCH 2/2] Update pagination.md --- pagination.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination.md b/pagination.md index d84b9634b29..0fa0840e4f0 100644 --- a/pagination.md +++ b/pagination.md @@ -376,7 +376,7 @@ Each paginator instance provides additional pagination information via the follo | `$paginator->lastPage()` | Get the page number of the last available page. (Not available when using `simplePaginate`). | | `$paginator->nextPageUrl()` | Get the URL for the next page. | | `$paginator->onFirstPage()` | Determine if the paginator is on the first page. | -| `$paginator->onLastPage()` | Determine if the paginator is on the last page. | +| `$paginator->onLastPage()` | Determine if the paginator is on the last page. | | `$paginator->perPage()` | The number of items to be shown per page. | | `$paginator->previousPageUrl()` | Get the URL for the previous page. | | `$paginator->total()` | Determine the total number of matching items in the data store. (Not available when using `simplePaginate`). |