Skip to content

Commit 379e13c

Browse files
author
Roman Dubrovin
committed
#-: fixed bug in filterBy
1 parent 25c9093 commit 379e13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/SearchTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function filterBy($field, $default = null)
2424
}
2525

2626
if (array_has($this->filter, $field)) {
27-
$this->query->where($preparedField, $this->filter[$field]);
27+
$this->query->where($field, $this->filter[$field]);
2828
}
2929

3030
return $this;

0 commit comments

Comments
 (0)