diff --git a/routes/web.php b/routes/web.php index b275683c..037a53aa 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,7 +26,12 @@ Route::get('/report/x1', function(){ return $item->created_at->format('Y-m'); }); - dd($months); + foreach($months as $month => $bookings){ + $day = $bookings->groupBy(function($item){ + return $item->created_at->format('Y-m-d'); + }); + dd($day); + } }); Route::get('/report/x2', function(){