title: Laravel eloquent ORM group where
body: <p>How do I convert the following query to Laravel 4 eloquent ORM?</p>
  
  <pre><code>select * from table where ((starttime &lt;= ? and endtime &gt;= ?) or (starttime &lt;= ? and endtime &gt;= ?) or (starttime &gt;= ? and endtime &lt;= ?))
  </code></pre>