diff --git a/src/Repository/Utils/RepositoryFilter.php b/src/Repository/Utils/RepositoryFilter.php index d931390..fdb572c 100644 --- a/src/Repository/Utils/RepositoryFilter.php +++ b/src/Repository/Utils/RepositoryFilter.php @@ -61,6 +61,10 @@ public function getQueryFilter(Builder|EloquentBuilder &$query, array $filter, s } } + if (is_int($value) && $field != 'id') { + $query->where($field, '=', $value); + } + if (is_array($value) && $field != 'query' && $field !== 'order') { $query->whereIn($field, $value); }