title: Filter records by interval date in Laravel
body: <p>I'm creating a filter to get expenses on a Credit Card, to generate a invoice.</p>
  <p>But I only made it work filtering by month and year. I need get the records on days interval, and than, month and year.</p>
  <p>For example:</p>
  <ul>
  <li><strong>Table</strong>: credit_cards</li>
  <li><strong>Column</strong>: close_invoice <em>(day 25)</em></li>
  </ul>
  <p>How do I get all expenses between day 25 of previous month and the next day 25?</p>
  <p>This is my query filtering by month:</p>
  <pre><code>    $thisMonth = $now-&gt;format('m');
      $thisYear = $now-&gt;format('Y');
  
      $cc_expenses = Expense::where([
          ['bank_id', $bank-&gt;id],
          ['payment_method', 1],
          ['parcels', NULL]
      ])
          -&gt;whereYear('date', $thisYear)
          -&gt;whereMonth('date', $thisMonth)
          -&gt;get();
  </code></pre>
  <p>But this way I don't get the records between day 25 and the last day of the previous month.</p>
  <p>Thanks in advance!</p>