title: cast datetime to date
body: <p>I'm doing a <code>whereBetween</code> dates query on Eloquent. However, I have an issue with the date time.</p>
  <p>If I select <code>date_from to 2018-11-01</code> and <code>date_to to 2018-11-29</code>
  and if I have a data that was created on <code>2018-11-29 12:28:45</code> the data created on this datetime will not be included because of the time.</p>
  <p>Is there a way to cast the <code>created_at</code> to <code>date</code>?</p>
  <p>here's my code:</p>
  <pre class="lang-php prettyprint-override"><code>Payable::with('details', 'transaction_type')
      -&gt;whereBetween('created_at', [$request-&gt;date_from, $request-&gt;date_to])
      -&gt;get();
  </code></pre>