This commit is contained in:
2021-03-26 19:00:26 +08:00
parent aea5651ad2
commit 11ef881927
+1 -1
View File
@@ -810,7 +810,7 @@ trait QueryTrait
public function where(callable|array|string $conditions): static public function where(callable|array|string $conditions): static
{ {
if ($conditions instanceof Closure) { if ($conditions instanceof Closure) {
$conditions = $this->makeClosureFunction($conditions); $conditions = '(' . $this->makeClosureFunction($conditions) . ')';
} }
$this->where[] = $conditions; $this->where[] = $conditions;
return $this; return $this;