title: Eloquent - Where Date >= date(now) and whereNull('date')
body: <p>I get all items from a table where:</p>
  
  <ul>
  <li><code>endDate</code> is >= now</li>
  <li><code>endDate</code> is <code>NULL</code></li>
  <li><code>published</code> equals <code>1</code>.</li>
  </ul>
  
  <p>This is what I have, but it gives me 0 items:</p>
  
  <pre class="lang-php prettyprint-override"><code>$items = Items::orderBy(\DB::raw('RAND()'))
    -&gt;where('endDate', '&gt;=', date("Y-m-d"))
    -&gt;whereNull('endDate')
    -&gt;where('published', '1')
    -&gt;whereIn('cid', $this-&gt;activeId)
    -&gt;orderBy('id')
    -&gt;paginate(4);
  </code></pre>