diff --git a/src/Builder.php b/src/Builder.php index 7e0dcfa..2f47628 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, '=']; }