Skip to content

Commit 26deea5

Browse files
authored
Add onFirstPage/onLastPage
1 parent 625a5e8 commit 26deea5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Layout/Concerns/WithScroll.php

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ public function hasMorePages(): bool
5959
return $this->getPageItems()->hasMorePages();
6060
}
6161

62+
public function onFirstPage(): bool
63+
{
64+
return $this->getPageItems()->onFirstPage();
65+
}
66+
67+
public function onLastPage(): bool
68+
{
69+
return $this->getPageItems()->onLastPage();
70+
}
71+
6272
protected function getPageItems(?int $page = null): LengthAwarePaginator
6373
{
6474
$page ??= $this->getPage();

0 commit comments

Comments
 (0)