title: Laravel Query Builder Where OR whereIn array
body: <p>I am having some trouble in Laravel using the query builder to select users based on two where clauses. 
  The first where clause would contain multiple where statements to select a user based on some conditions. If this fails in the OR part I would like to check simply if the user ID is in the array.
  Would be grateful for some advice on how I could achieve this.
  Thanks.</p>
  
  <pre><code>$rs = DB::table('tblUser')
          -&gt;select('name')
          -&gt;where(function($q) {
              $q-&gt;where(function($q){
                $q-&gt;where('fid', '=', $this-&gt;argument('fid'))
                  -&gt;where('type', '&lt;', 10)
              })
              -&gt;orWhereIn('id', $userIdSArray);
          })
          -&gt;get();
  </code></pre>