We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82be9a1 commit 227517cCopy full SHA for 227517c
src/CacheKey.php
@@ -234,7 +234,10 @@ protected function getInAndNotInClauses(array $where) : string
234
$type = strtolower($where["type"]);
235
$subquery = $this->getValuesFromWhere($where);
236
$values = collect($this->query->bindings["where"][$this->currentBinding] ?? []);
237
- $this->currentBinding += count($where["values"]);
+
238
+ if (Str::startsWith($subquery, $values->first())) {
239
+ $this->currentBinding += count($where["values"]);
240
+ }
241
242
if (! is_numeric($subquery) && ! is_numeric(str_replace("_", "", $subquery))) {
243
try {
0 commit comments