diff --git a/extend/catcher/CatchQuery.php b/extend/catcher/CatchQuery.php index a4bc152..9f49f70 100644 --- a/extend/catcher/CatchQuery.php +++ b/extend/catcher/CatchQuery.php @@ -118,7 +118,7 @@ class CatchQuery extends Query foreach ($params as $field => $value) { $method = 'search' . Str::studly($field) . 'Attr'; - if ($value && method_exists($this->model, $method)) { + if ($value !== null && method_exists($this->model, $method)) { $this->model->$method($this, $value, $params); } }