diff --git a/src/Traits/QueryTrait.php b/src/Traits/QueryTrait.php index 2a5a64e..d2d8737 100644 --- a/src/Traits/QueryTrait.php +++ b/src/Traits/QueryTrait.php @@ -823,8 +823,12 @@ trait QueryTrait $this->where[] = $this->makeClosureFunction($column); return $this; } - [$column, $opera, $value] = $this->opera(...func_get_args()); - $this->where[] = "$column $opera $value"; + if (is_string($column)) { + $this->where[] = $column; + } else { + [$column, $opera, $value] = $this->opera(...func_get_args()); + $this->where[] = "$column $opera $value"; + } return $this; }