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