-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix Parameter Grouping with Laravel 7.x #27
base: master
Are you sure you want to change the base?
Conversation
Is it possible to merge this request? It would solve a problem with advanced where statements when using Laravel 7.x and your eloquence package. I've tried this fix and it works. |
Hi! This is an important fix, can you merge it, please? |
I also really need this fix. My entire application is broken after upgrading to L7. Could this please be merged? |
I too hope this can be merged ASAP. An application I'm having to support needs this to work in L7. |
@jarektkaczyk plz help! |
Any update on this? |
jarektkaczyk#27 Fix Parameter Grouping with Laravel 7.x
Laravel 7.x introduced the following change laravel/framework#30934 allowing for the feature https://laravel.com/docs/7.x/queries#subquery-where-clauses
This currently breaks parameter grouping when using eloquence due to the where() function passing
=
as the default operator even if a closure is passed.This MR aims to fix the issue by detecting if a closure is passed and if so, not applying the default
=
operator.To replicate the bug using sample Code on a fresh Laravel 7 install with sofa/eloquence-base:
app/User.php
routes/web.php
Results in the error