title: Eloquent - Get records by day
body: <p>I have a list of database records that represent some events. Each has a <code>start_time</code> column that contains dates in this format: <code>2017-10-28 22:00:00</code>. I would like to be able to get all the records whose column <code>start_time</code> is a Friday using Laravel. Something like this:</p>
  <pre class="lang-php prettyprint-override"><code>$fridayEvents = $q-&gt;whereDate('start_time', '=', isFriday());
  </code></pre>
  <p>But I am having a hard time creating <code>isFriday()</code> with Carbon.</p>