ambengers / laravel-query-filter

Laravel query filter provides an elegant way to filter your eloquent models via the request query string.
MIT License
30 stars 5 forks source link

HTTP error for invalid filter and/or loader #15

Closed ambengers closed 2 years ago

ambengers commented 3 years ago

Respond with HTTP 400 error if an invalid filter and/or loader was sent through the request. Make the option available in config.

ambengers commented 2 years ago

After much testing, I figured this cannot be implemented because it will interfere with other features that are also using request query parameters (i.e. signed urls uses signature).

It would be much better to just ignore invalid query params instead of sending a validation error in those cases.