From c0fbb748ae39947d7f4d13fb5c6a2226f86856a6 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 18:09:10 +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 ff8a0ca0..21677392 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 $item->created_at->format('m'); + return $item->created_at->format('Y-m'); })); echo "

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

"; foreach ($bookings as $booking) {