mehdi-fathi / eloquent-filter

Eloquent Filter is a package for filter data of models by the query strings. Easy to use and fully dynamic.
https://mehdi-fathi.github.io/eloquent-filter/
MIT License
430 stars 43 forks source link

If the where value is 0(zero, not null), the filter does not work. #184

Closed kangwonchul closed 2 years ago

kangwonchul commented 2 years ago

db recode

status 0, 1, 2

api

    private static array $whiteListFilter = [
        'status',
        'type',
        'category_id',
    ];

get uri request

?status=0

result

select * from `{table_name}` order by `id` desc limit 15 offset 0
[]

where not working