Skip to content
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

[10.x] allow override of the Builder paginate() total #46415

Merged
merged 2 commits into from Mar 25, 2023

Conversation

browner12
Copy link
Contributor

Resubmission of #46336 with @X-Coder264 's suggestion for handling a method signature change prior to a major release, based on Symfony's strategy, as demonstrated in:

https://github.com/symfony/symfony/blob/v5.4.21/src/Symfony/Component/DependencyInjection/Alias.php#L88-L108
https://github.com/symfony/symfony/blob/v6.0.0/src/Symfony/Component/DependencyInjection/Alias.php#L70

this allows the user to set the total number of results a query returns. If the user provides this argument, the paginate() method will skip running its query to determine the total row count.

currently handled as a dynamic argument, since we cannot change the method signature on a patch or minor version.

this allows the user to set the total number of results a query returns.  If the user provides this argument, the `paginate()` method will skip running its query to determine the total row count.

currently handled as a dynamic argument, since we cannot change the method signature on a patch or minor version.
@browner12 browner12 changed the title allow override of the Builder paginate() total [10.x] allow override of the Builder paginate() total Mar 9, 2023
@taylorotwell taylorotwell merged commit 350e605 into laravel:10.x Mar 25, 2023
@browner12 browner12 deleted the AB-paginate-total branch March 25, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants