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.
current_page_url
1 parent a9bfc0d commit ec76574Copy full SHA for ec76574
src/Illuminate/Pagination/Paginator.php
@@ -153,6 +153,7 @@ public function toArray()
153
{
154
return [
155
'current_page' => $this->currentPage(),
156
+ 'current_page_url' => $this->url($this->currentPage()),
157
'data' => $this->items->toArray(),
158
'first_page_url' => $this->url(1),
159
'from' => $this->firstItem(),
tests/Pagination/PaginatorTest.php
@@ -21,6 +21,7 @@ public function testSimplePaginatorReturnsRelevantContextInformation()
21
'per_page' => 2,
22
'current_page' => 2,
23
'first_page_url' => '/?page=1',
24
+ 'current_page_url' => '/?page=2',
25
'next_page_url' => '/?page=3',
26
'prev_page_url' => '/?page=1',
27
'from' => 3,
0 commit comments