title: Eloquent Laravel Where And Or And
body: <p>I would like to make Sql request like this :</p>
  
  <blockquote>
    <p>Get the ((<code>Age &gt; 10</code> AND <code>Weight &gt; 50</code>) OR <code>Name = Jack</code>) AND <code>Actif = 1</code></p>
  </blockquote>
  
  <p>My Eloquent request look like this :</p>
  
  <pre><code>$user = DB::table('users')
      -&gt;where('Age', '&gt;=', 10)
      -&gt;where('Weight', '&gt;=', 50)
      -&gt;orWhere('Name', 'Jack')
      -&gt;where('Actif', 1)
      -&gt;get();
  </code></pre>
  
  <p>But actually it will return the result <code>Jack</code> although this column <code>Actif is set to 0</code>.</p>