改名
This commit is contained in:
@@ -816,12 +816,16 @@ trait QueryTrait
|
||||
* @return $this
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function where(Closure|array $conditions): static
|
||||
{
|
||||
if ($conditions instanceof Closure) {
|
||||
$conditions = $this->makeClosureFunction($conditions);
|
||||
}
|
||||
if (is_array($conditions)) {
|
||||
$conditions = $this->builder->hashCompiler($conditions);
|
||||
}
|
||||
$this->where[] = $conditions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user