title: Laravel Eloquent Select Between current month and previous 3 months
body: <p>i'm trying to build a query that will select all of the records in my DB between now (current month) and the previous 3 months. </p>
  
  <p>My query somewhat works, but i want to ignore the day of the month. At the moment, it's selecting the last # of months to the current DAY as well but i want to ignore the current day and use the start and end of the months.</p>
  
  <p>Here's my query:<br></p>
  
  <pre><code>$dateS = Carbon::now()-&gt;subMonth(3);
  $dateE = Carbon::now(); 
  $TotalSpent = DB::table('orders')
  -&gt;select('total_cost','placed_at')
  -&gt;whereBetween('placed_at',[$dateS,$dateE])
  -&gt;where(['deleted' =&gt; '0', 'delivery_address_id' =&gt; $DeliveryAddress-&gt;id])
  -&gt;sum('total_cost');
  </code></pre>
  
  <p>Any help would be appreciated. It's really bugging me!</p>