📅  最后修改于: 2022-03-11 15:00:28.983000             🧑  作者: Mango
$fileName = $date . '.xls';
$fileContent = Excel::create($fileName , function($excel) use ($licencies) {
$excel->sheet('Excel', function($sheet) use ($licencies) {
$sheet->fromArray($licencies);
});
})->string('xls');
Storage::disk('s3')->put($fileName, $fileContent);