title: Laravel group by date in foreach not working
body: <p>I have the following code:</p>
  
  <pre><code>$getDate = $messages-&gt;groupBy(function($date) { 
      return Helper::ru_date('%d %b', strtotime($date-&gt;created_at-&gt;toDateString())); 
  });
  </code></pre>
  
  <p>This give me messages group by date. I get an array:</p>
  
  <p>14 february => messages items <br>
  15 february => messages items</p>
  
  <p>When I want do foreach and show date I get object of message. Why? I want see 14 february or 15.</p>
  
  <p>My foreach:</p>
  
  <pre><code>@foreach($getDate as $date)
     {{ $date }} //I get collection of message, but not date
     @foreach($date as $message)
          //but this I need show messages of this date
     @endforeach
  @endforeach
  </code></pre>