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

https://github.com/laravel/framework/blob/master/src/Illuminate/Pagination/Paginator.php#L170

// The page number will get validated and adjusted if it either less than one
// or greater than the last page available based on the count of the given
// items array. If it's greater than the last, we'll give back the last.

The page number isn't changed, but the content is from the last available page. If you wanted to redirect to the last page you could extend the Pagination class to support that.

Last updated 2 years ago.
0

interesting, i just tried this on one of my pages, and it doesn't display what supposed to be the "last page". it's just an empty section for me.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ir0ny1 ir0ny1 Joined 14 Apr 2014

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.