Done many times: Punch into google
site:laracasts.com eloquent filtering and pagination
Explanation, google search is more powerful than the search here.
Tweak search as needed. And there are past in depth great discussions on this.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I'm currently working on a project that has somewhat complicated filters, sorting and relations on every view.
The views cover:
Originally, I was planning on using: https://docs.spatie.be/laravel-query-builder/v2/introduction/ but it doesn't cover passing flags to the filter.
Could anyone push me in the right direction? I'm thinking that expanding QueryBuilder would be the suggested approach.
Please or to participate in this conversation.