We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a131287 commit 6ec32e7Copy full SHA for 6ec32e7
1 file changed
src/Responses/Concerns/PaginatedResponse.php
@@ -39,6 +39,6 @@ public function getTotalPages(): int
39
40
public function onLastPage(): bool
41
{
42
- return $this->currentPage === $this->totalPages;
+ return $this->totalItems === 0 || $this->currentPage === $this->totalPages;
43
}
44
0 commit comments