laravel-eloquent-filter
laravel-eloquent-filter copied to clipboard
cannot change value of ignoreEmptyFilters flag
Hey there, thank you for your awesome package there's one thing I couldn't figure out on my own. If you look at thist file mnabialek/laravel-eloquent-filter/src/Parsers/SimpleQueryParser.php Line:44 there's a flag for ignoring empty values but I can't seem to find the right place to change it
Hi
You can just create custom SimpleQueryFilter and pass custom SimpleQueryParser that extends from original SimpleQueryParser.php but sets this property to true. See https://github.com/mnabialek/laravel-eloquent-filter#customization for details
that's actually what I ended up doing, since I needed to implement a few more filters
Thanks
but It would have been nice to have config file to set these flags accordingly
@TheAliAbbasi Thank you for suggestion. Maybe I will consider adding this in future.