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.
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community