From c5a49bbc444a6470a736318307c36e5a4780c7a0 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 22 Aug 2023 15:21:47 +0800 Subject: [PATCH] fix duplicate packages --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 0f22e3a7..745707af 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1190,7 +1190,7 @@ Route::get('/duplicate-package-clean-up', function(){ echo "ID: {$row->id}, Packing List ID: {$row->packing_list_id}, Description: {$row->description}, Width: {$row->width}, Height: {$row->height}, Weight: {$row->weight}, Quantity: {$row->quantity}, Created At: {$row->created_at}
"; } // Delete all rows in the group except the first one (oldest based on created_at) -// $firstRow = $rows->shift(); + $firstRow = $rows->shift(); // foreach ($rows as $row) { // Package::where('packages')->where('id', $row->id)->delete(); // }