I\'m using the Laravel Eloquent query builder and I have a query where I want a WHERE clause on multiple conditions. It works, but it\'s not elegant.
WHERE
E
$variable = array('this' => 1, 'that' => 1 'that' => 1, 'this_too' => 1, 'that_too' => 1, 'this_as_well' => 1, 'that_as_well' => 1, 'this_one_too' => 1, 'that_one_too' => 1, 'this_one_as_well' => 1, 'that_one_as_well' => 1); foreach ($variable as $key => $value) { User::where($key, '=', $value); }