From e6e8b8fcbde22a4bbb3852e6e2eb000593c2cda0 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 24 Sep 2021 19:09:04 +0800 Subject: [PATCH] regenerate incorrect invoices --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 49d6a30d..16277592 100644 --- a/routes/web.php +++ b/routes/web.php @@ -73,7 +73,7 @@ Route::get('/transfer/merge/{marking}', function ($marking) { Route::get('/test', function () { Auth::login(User::findOrFail(3)); DB::beginTransaction(); - $bookings = \App\Models\Booking::where('updated_at', '>=', Carbon::parse('23-09-2021'))->where('status', '=', \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED)->pluck('marking'); + $bookings = \App\Models\Booking::where('updated_at', '>=', Carbon::parse('23-09-2021'))->where('status', '=', \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED)->get(); foreach ($bookings as $booking){ $booking->status = \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED;