打印月份

This commit is contained in:
邓皓元 2019-08-12 14:37:49 +08:00
parent aa88f1d0aa
commit 53ce6d5993

View File

@ -17,6 +17,7 @@ $end = Carbon::parse('2019-07')->endOfMonth();
for ($i = 0; $i <= $end->diffInMonths($start); $i++) {
$month = $start->copy()->addMonths($i)->format('Y-m');
$conditions['month'] = $month;
echo $month . PHP_EOL;
$export = new CompanyReportExport($conditions);
$url = ExportService::store($export, $this->disk);
}