diff --git a/app/Exports/ParkingVipListExport.php b/app/Exports/ParkingVipListExport.php index 9ff0ade..f449c2e 100644 --- a/app/Exports/ParkingVipListExport.php +++ b/app/Exports/ParkingVipListExport.php @@ -15,7 +15,8 @@ class ParkingVipListExport implements FromArray, WithHeadings */ public function array(): array { - $list = ParkingVipList::all()->toArray(); + $list = ParkingVipList::query()->orderBy('id', 'desc')->select()->get() + ->toArray(); $data = []; $index = 1; foreach ($list as $item) {