You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select*from users where name ='John'and (votes >100or title ='Admin')
Subqueries are also supported with almost the same syntax. The only difference is that the where method takes a closure as the first argument and a value as a second argument.
Laravel support parameter grouping via a where method that takes exaktly 1 argument (a closure) : https://laravel.com/docs/7.x/queries#parameter-grouping
produces
Subqueries are also supported with almost the same syntax. The only difference is that the where method takes a closure as the first argument and a value as a second argument.
Notice the "'Pro'" value on the last line.
Eloquence seems to interpret where(closure) as where(closure,null).
Im my case Eloquence changes the correct query:
to the syntactically incorrect query
The php code to generate the query is:
I will try to troubleshoot this further.
The text was updated successfully, but these errors were encountered: