Skip to content

Commit d6e23e6

Browse files
committed
改进分页toarray方法
1 parent 15255d6 commit d6e23e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Paginator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ public function toArray(): array
531531
'current_page' => $this->currentPage(),
532532
'last_page' => $this->lastPage,
533533
'data' => $this->items->toArray(),
534+
'has_more' => $this->hasMore,
534535
];
535536
}
536537

0 commit comments

Comments
 (0)