Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 449f9cc

Browse files
committed
Small fix to pagination count
1 parent bdfb0da commit 449f9cc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## [Unreleased]
89

10+
## [1.1.1] - 2019-08-28
11+
12+
### Fixed
13+
14+
- Some pagination bugs
15+
916
## [1.1.0] - 2019-08-16
1017

1118
### Added

src/Http/Resources/CollectsResources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function refreshPaginator(AbstractPaginator $resource)
4545
{
4646
return (new LengthAwarePaginator(
4747
$this->collection,
48-
$this->collection->count(),
48+
$resource->total(),
4949
$resource->perPage(),
5050
$resource->currentPage(),
5151
$resource->getOptions()

0 commit comments

Comments
 (0)