title: Laravel 5.4: How do I get records from just this week?
body: <p>To get all records of the current day, I did</p>
  
  <pre><code>$dt = Carbon::now();
  $dataToday = Data::whereDay('created_at', $dt-&gt;day)-&gt;get();
  </code></pre>
  
  <p>To get records from this week, I tried the following but without success.</p>
  
  <pre><code>$dataThisWeek = Data::where('created_at', $dt-&gt;weekOfYear);
  $dataThisWeek = Data::where('created_at', $dt-&gt;weekOfMonth);
  $dataThisWeek = Data::whereWeek('created_at', $dt-&gt;week);
  </code></pre>
  
  <p>How do we approach this with Eloquent and Carbon (preferably) or a native MYSQL function?</p>