mehdi-fathi/eloquent-filter

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

kangwonchul opened this issue · 0 comments

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