fix duplicate packages

This commit is contained in:
Omair Saleh
2023-08-22 15:21:47 +08:00
parent f8131b3a1e
commit c5a49bbc44
+1 -1
View File
@@ -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}<br>";
}
// 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();
// }