diff --git a/app/Console/Commands/SendVehicleReport.php b/app/Console/Commands/SendVehicleReport.php index e3dc635..04a169e 100644 --- a/app/Console/Commands/SendVehicleReport.php +++ b/app/Console/Commands/SendVehicleReport.php @@ -68,7 +68,7 @@ class SendVehicleReport extends Command 'type', ]) ->where('plant_id', $plant->id) - ->whereBetween('created_at', [$startDate, $endDate]) + ->whereBetween('entry_time', [$startDate, $endDate]) ->get(); if ($vehicleEntries->isEmpty()) {