Laravel Excel文檔中找不到如何在download()之後重定向()。我試圖做這樣的行爲如何在使用Laravel Excel後 - >下載()後重定向
Excel::load('/bills/bill.template.xlsx', function($doc) {
$sheet = $doc->setActiveSheetIndex(0);
$sheet->setCellValue('G21', '{buyer}');
})->download('xlsx');
return redirect('/')->with('notification','custom msg');
但它不起作用。
它的工作原理應該沒有返回語句 –