= '2019-10-01 00:00:00')) // and "virtual_order_cards_partition"."deleted_at" is null // and "refunded_at" is null // group by // "company_id" , // "package_id", // "type", // "unit_price" , // "sim" // order by // "sim" asc // limit 100000 // EOF; // $res = DB::select($sql); // dd($res); $conditions = [ 'type' => [0], 'company_id' => [23], 'package_id' => [98], 'unit_price' => 14400, 'month' => '2019-10' ]; $export = new CompanyReportDetailExport($conditions); $url = ExportService::store($export, "public", false);