This commit is contained in:
2023-04-17 10:57:38 +08:00
parent 1b65f84962
commit 2486bfd4d1
+11
View File
@@ -777,6 +777,17 @@ trait QueryTrait
}
/**
* @param Closure $closure
* @return $this
*/
public function whereClosure(Closure $closure): static
{
$this->where[] = $this->makeClosureFunction($closure);
return $this;
}
/**
* @param Closure|array $closure
* @return string