From fef1e7193e7267c4c1fd47e6563cd0065ea28952 Mon Sep 17 00:00:00 2001 From: Jitendra Patel Date: Fri, 3 Jun 2022 10:17:52 +0530 Subject: [PATCH] #27 Fix Parameter Grouping with Laravel 7.x --- src/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '=']; }