diff --git a/routes/web.php b/routes/web.php index f782143e..ff8a0ca0 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,7 +20,7 @@ Route::get('/old-invoices', function(){ $q->whereNotNull('image_path'); })->get(); dd($bookings->groupBy(function($item) { - return Carbon::createFromFormat('Y-m-d', $item->created_at)->format('Y-W'); + return $item->created_at->format('m'); })); echo "