title: How to use two WhereIn with Laravel
body: <p>I have a simple query, where $clubs and $user_ids are array. I want to use two WhereIn's in the same query.For example $clubs = array(1,2,3) and $user_id = array(25,30,40). And there is an entry in DB as this user_id =25 and corresponding club_id = 1. I want to list, user_id = 25 from the query result.</p>
  
  <pre><code>$query = \DB::table('users_clubs')          
              -&gt;WhereIn('user_id', $user_ids)
              -&gt;WhereIn('club_id',$clubs)
              -&gt;lists('user_id');
  </code></pre>