From 6fc073c7e82854421d6a3d35303efc664d021832 Mon Sep 17 00:00:00 2001 From: faezeh Date: Wed, 17 Jun 2026 15:19:34 +0330 Subject: [PATCH] fix service machine --- app/Services/Cartables/Mission/Report/ReportMachineService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Cartables/Mission/Report/ReportMachineService.php b/app/Services/Cartables/Mission/Report/ReportMachineService.php index e1b83712..5ebd8e00 100644 --- a/app/Services/Cartables/Mission/Report/ReportMachineService.php +++ b/app/Services/Cartables/Mission/Report/ReportMachineService.php @@ -76,7 +76,7 @@ class ReportMachineService $query->where('province_id', '=', $request->province_id); }) ->groupBy('driver_id') - ->orderBy('COUNT(*) desc'); + ->orderByRaw('COUNT(*) DESC'); $fields = ['driver_id','driver_name','missions', 'func'];