|
|
|
@ -16,7 +16,7 @@ class LicensePlateRecognitionExport implements FromArray, WithHeadings |
|
|
|
$index = 1; |
|
|
|
$query = LicensePlateRecognition::query(); |
|
|
|
$query->groupBy(['time_slot'])->latest('time_slot') |
|
|
|
->forPage(1, 1000)->get()->each( |
|
|
|
->forPage(1, 1000)->select('time_slot')->get()->each( |
|
|
|
function ($item) use (&$data, &$index) { |
|
|
|
$countData = (new LicensePlateRecognitionService( |
|
|
|
new OperationLogService() |
|
|
|
|