Skip to content

Commit 72bac19

Browse files
committed
Merge pull request laravel#1267 from BlueHayes/5.0
Add pagination method changes to upgrade.md
2 parents 19efc76 + c3b25fc commit 72bac19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

upgrade.md

+4
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ If your application code was injecting `Illuminate\Cache\CacheManager` to get a
210210

211211
Replace any calls to `$paginator->links()` with `$paginator->render()`.
212212

213+
Replace any calls to `$paginator->getFrom()` and `$paginator->getTo()` with `$paginator->firstItem()` and `$paginator->lastItem()` respectively.
214+
215+
Remove the "get" prefix from calls to `$paginator->getPerPage()`, `$paginator->getCurrentPage()`, `$paginator->getLastPage()` and `$paginator->getTotal()` (e.g. `$paginator->perPage()`).
216+
213217
### Beanstalk Queuing
214218

215219
Laravel 5.0 now requires `"pda/pheanstalk": "~3.0"` instead of `"pda/pheanstalk": "~2.1"`.

0 commit comments

Comments
 (0)