❄️ The winter sale is here. 25% off for a limited time. Join us →
Easy Query Filters with Laravel Pipelines

05. Passing additional arguments

Applying result filtering with query strings can mess up your controllers quickly. Let's reach for a solution using Pipelines, an undocumented but seriously powerful feature of Laravel.

Every filter (e.g. only show activate users) will have its own class, neatly tucked away. We'll also cover testing, and see how this method makes isolated testing much easier.