Support the ongoing development of Laravel.io →
Views Blade
Last updated 2 years ago.
0

In fact $paginator->getLastPage() > 1 seems to return one even if there is actually 2 pages?

0

Did you update to Laravel 5?

The pagination has changed:

http://laravel.com/docs/5.0/pagination

0

No I havn't updated yet, this is in Laravel 4.2.16

0

Just so it's clear, this was working up until recently (I believe). Also, using ->links() is rendering the view which is great, the issue seems to be with the following line:

($paginator->getLastPage() > 1)

This is currently returning 1 when there are in fact two pages.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.