title: How to use multiple OR,AND condition in Laravel queries
body: <p>I need help for query in laravel </p>
  
  <p>My Custom Query: (Return Correct Result) </p>
  
  <pre><code>Select * FROM events WHERE status = 0 AND (type="public" or type = "private")
  </code></pre>
  
  <p>how to write this query in <strong>Laravel.</strong></p>
  
  <pre><code>Event::where('status' , 0)-&gt;where("type" , "private")-&gt;orWhere('type' , "public")-&gt;get();
  </code></pre>
  
  <p>But it's returning all public events that status is not 0 as well. </p>
  
  <p>I am using Laravel 5.4</p>