I\'m making a products search by filters:
My code:
->where(function($query) use($filter) { if(!empty($filter)){ foreach ($filter as $key =&g
You have a orWhereIn function in Laravel. It takes the same parameters as the whereIn function.
orWhereIn
whereIn
It's not in the documentation but you can find it in the laravel API. http://laravel.com/api/4.1/
That should give you this:
$query-> orWhereIn('products.value', $f);