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

Orwhere and like conditions don't work together #182

Closed davs20 closed 2 years ago

davs20 commented 2 years ago

Describe the bug I'm trying to filter my users by email or name using the like operator, so these are my query params: [name][like]=%David%&or[email][like]=%franando14@gmail.co%

Questions

There is a way to use Orwhere and like operator?

mehdi-fathi commented 2 years ago

@davs20 No, We don't support the like operator in Orwhere now. You can solve this with a custom filter.

davs20 commented 2 years ago

@mehdi-fathi thank you for answer , have a good day !