[5.6] Add Builder::whereJsonNotContains()#24367
[5.6] Add Builder::whereJsonNotContains()#24367taylorotwell merged 1 commit intolaravel:5.6from staudenmeir:where-json-not-contains
Conversation
|
You're changing the method signature of whereJsonContains which is a breaking change. This indicates that the PR should target the master branch (the next release). |
|
|
|
Ah, but I wouldn't admit to being wrong. But I was perhaps not fully correct. ;) You're right, this wouldn't be a breaking change since it isn't released yet. |
|
I wasn't implying that ;-) I should have mentioned it in the first post. |
|
Why not just let users use "whereIn" & "whereNotIn" on the surface and internally call "whereJsonContains" & "whereJsonNotContains" under the hood whenever the column name contains the "->" syntax? It's more concise & unified as I myself treat the Query Builder as a "programming interface" of some sort. |
|
There are two reasons:
|
Adds
whereJsonNotContains()to complementwhereJsonContains()(#24330).Or would you prefer
whereJsonDoesntContain()?EDIT: This isn't a breaking change because
whereJsonContains()hasn't been released yet.