DEV Community

Discussion on: Making the advanced search query with Eloquent-Builder in Laravel

Collapse
 
stevejohnme007 profile image
stevejohnme007

Nice post!
Can we combine two or more filter classes to single one.

Collapse
 
mohammadfouladgar profile image
Fouladgar.dev • Edited

If some filters have be a single responsibility you can manage them in a single filter class.Otherwise, you should define a filter-class for each filter argument.