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

Make Buildable@paginate compatible with Laravel 10.3.0 #446

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

joshuadwire
Copy link
Contributor

Fixes the issue referenced in #445. Laravel 10.3.0 added a $total parameter to Illuminate\Database\Eloquent\Builder::paginate. This PR adds the same parameter to GeneaLabs\LaravelModelCaching\Traits\Buildable::paginate to eliminate PHP errors about a mismatch in function signature.

@faytekin
Copy link
Contributor

faytekin commented Mar 9, 2023

Let's wait for the merge to happen. If it does, the code causing this breaking change will be reverted in this PR, so there will be no need for further changes.

cc: @joshuadwire @mikebronner

@mikebronner mikebronner merged commit 1fe3774 into mikebronner:master Mar 9, 2023
@faytekin
Copy link
Contributor

faytekin commented Mar 9, 2023

@mikebronner In this PR laravel/framework#46406, the change in Laravel has been reverted. Maybe it will be considered in the future.

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.

3 participants