diff --git a/routes/web.php b/routes/web.php index f97719d8..f782143e 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->date)->format('Y-W'); + return Carbon::createFromFormat('Y-m-d', $item->created_at)->format('Y-W'); })); echo "