diff --git a/src/Builder.php b/src/Builder.php index 2561cb0..90f6509 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -124,7 +124,7 @@ public function select($columns = ['*']) */ public function where($column, $operator = null, $value = null, $boolean = 'and') { - if (!in_array(strtolower($operator), $this->operators, true)) { + if (!$column instanceof Closure && !in_array(strtolower($operator), $this->operators, true)) { list($value, $operator) = [$operator, '=']; }