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'];