Skip to content

Commit 257b95c

Browse files
authored
[8.x] Cast linkCollection to array (#34245)
1 parent 7b4d0f7 commit 257b95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Pagination/LengthAwarePaginator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function toArray()
198198
'from' => $this->firstItem(),
199199
'last_page' => $this->lastPage(),
200200
'last_page_url' => $this->url($this->lastPage()),
201-
'links' => $this->linkCollection(),
201+
'links' => $this->linkCollection()->toArray(),
202202
'next_page_url' => $this->nextPageUrl(),
203203
'path' => $this->path(),
204204
'per_page' => $this->perPage(),

0 commit comments

Comments
 (0)