This commit is contained in:
2021-02-24 18:41:09 +08:00
parent 0cfd0efff6
commit fa12e617c7
+3
View File
@@ -730,6 +730,9 @@ trait QueryTrait
*/
public function where(callable|array|string $conditions): static
{
if (is_array($conditions)) {
$conditions = [$conditions];
}
$this->where[] = $conditions;
return $this;
}