From 379e13cd8a4cb0d5574f1b3c51e993fb33a352be Mon Sep 17 00:00:00 2001 From: Roman Dubrovin Date: Fri, 6 Jul 2018 11:26:16 +0600 Subject: [PATCH] #-: fixed bug in filterBy --- src/Traits/SearchTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/SearchTrait.php b/src/Traits/SearchTrait.php index 30a8837f..2521bc5a 100644 --- a/src/Traits/SearchTrait.php +++ b/src/Traits/SearchTrait.php @@ -24,7 +24,7 @@ public function filterBy($field, $default = null) } if (array_has($this->filter, $field)) { - $this->query->where($preparedField, $this->filter[$field]); + $this->query->where($field, $this->filter[$field]); } return $this;