Skip to content

Commit

Permalink
fix: simple paginate
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Oct 11, 2023
1 parent 26cd36c commit ff5d191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected function formatCollection($collection): \Closure
$collection instanceof LengthAwarePaginator => $item->paginateWith(new IlluminatePaginatorAdapter($collection)),
$collection instanceof Paginator => $item->addMeta([
'pagination' => [
'count' => count($collection->items()),
'count' => $collection->lastItem(),
'per_page' => $collection->perPage(),
'current_page' => $collection->currentPage(),
'links' => array_filter([
Expand Down

0 comments on commit ff5d191

Please sign in to comment.