HI @cowzo,
This tutorial might help you :)
https://m.dotdev.co/writing-advanced-eloquent-search-query-filters-de8b6c2598db
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi there,
So I stumbled upon the following question when I was creating multiple filters. Each filter/form request is currently associated with it's own DB query in the Controller. What would be the best practice if I want to make use of 4 different filters which can be combined. Would this mean I need to make 444*4 different IF-statements in my Controller to cover all the options?
Thanks!
HI @cowzo,
This tutorial might help you :)
https://m.dotdev.co/writing-advanced-eloquent-search-query-filters-de8b6c2598db
Please or to participate in this conversation.