title: How can I add brackets on the laravel eloquent? (Laravel 5.3)
body: <p>My query is like this :</p>
  
  <pre><code>SELECT * FROM message WHERE (seller_id = 1 OR buyer_id = 3) AND deleted_by NOT LIKE '%1%'
  </code></pre>
  
  <p>I want change it to laravel eloquent</p>
  
  <p>I try like this :</p>
  
  <pre><code>Message::where('seller_id', auth()-&gt;user()-&gt;id)
         -&gt;orWhere('buyer_id', auth()-&gt;user()-&gt;id)
         -&gt;where('deleted_by', 'not like', '%'.auth()-&gt;user()-&gt;id.'%')
         -&gt;get();
  </code></pre>
  
  <p>But, the result like this :</p>
  
  <pre><code>SELECT * FROM message WHERE seller_id = 1 OR buyer_id = 3 AND deleted_by NOT LIKE '%1%'
  </code></pre>
  
  <p>Seems it need brackets</p>
  
  <p>How can I add brackets on the laravel eloquent?</p>