-
Notifications
You must be signed in to change notification settings - Fork 11.5k
[5.0] Fix a few things for Pagination. #6054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tests fail. |
Oh, sorry. Now, it's ok. |
This 100% needs to be squashed! |
@@ -81,6 +80,8 @@ public function nextPageUrl() | |||
{ | |||
return $this->url($this->currentPage() + 1); | |||
} | |||
|
|||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't do this. Just remove the entire return statement, and don't return anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, remove all.
Can you squash to one commit and force push please. 22 commits is way to much of a mess in the commit history. |
See #6071. |
Some docBlocks lines has been improved. Some lines, now more readable.
@taylorotwell now, simplePaginate has been deleted. In my opinion, paginate method use the LengthAwarePaginator class. We will create simplePaginate again for Paginator class. So that, new Laravel version is provided for backward compatibility.