title: Iterating Carbon date inside loop
body: <p>In my Laravel project I want to create a array of next 7 days dynamically. I have following setup:</p>
  
  <pre><code>    $pickup_dates = [];
      $today = Carbon::today();
      for ($i = 0; $i &lt; 7; $i++) {
        $pickup_dates[] = $today-&gt;addDay();
      }
      dd($pickup_dates);
  </code></pre>
  
  <p>But when I use dd to dump data my output as follows:</p>
  
  <pre><code>Array
  (
  [0] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [1] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [2] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [3] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [4] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [5] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  [6] =&gt; Carbon\Carbon Object
      (
          [date] =&gt; 2017-08-09 00:00:00.000000
          [timezone_type] =&gt; 3
          [timezone] =&gt; UTC
      )
  
  )
  </code></pre>
  
  <p>As you can see it outputs same date, but I want to date sequence of the next 7 days. What I want to achieve is this:</p>
  
  <ul>
  <li>2017-08-03</li>
  <li>2017-08-04</li>
  <li>2017-08-05</li>
  <li>2017-08-06</li>
  <li>2017-08-07</li>
  <li>2017-08-08</li>
  <li>2017-08-09</li>
  </ul>
  
  <p>Can you tell me what is the wrong with this code? Or is there any other way to achieve this?</p>