I am generating an Excel file to download from the Livewire component and how to make it downloadable?
public function export()
{
$filename = 'export.xlsx';
// here is generated a "normal" file download response of Laravel
return Excel::download(new CustomExcelExport(), $filename);
}
This kind of downloadable response Livewire is just ignoring… I do not really want to save a temporary files and make a redirect. Just I do not see any mentioning about “download”. Any ideas or undocumented finding?