From 64287b183c4a17b369c9186356b9165fc04e3933 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 18:08:34 +0800 Subject: [PATCH] show old invoices --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "

Total pending invoices:".count($bookings)."

"; foreach ($bookings as $booking) {