I think the exception message is pretty clear. Make sure that it has an extension, or be explicit and pass a writer/reader type.
Jun 8, 2022
7
Level 1
Laravel export excel No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type.
"No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type." and I've checked my file extension is ok. here is my code:
return Excel::download(new PropertyDetailExport($request), 'exports.xlsx');
Level 1
@Josadec here is my code:
return Excel::download(new BookingExport($data),'booking-report.xlsx');
change to
use Maatwebsite\Excel\Excel as ExcelExcel;
use Maatwebsite\Excel\Facades\Excel;
return Excel::download(new BookingExport($data),'booking-report.xlsx',ExcelExcel::XLSX);
1 like
Please or to participate in this conversation.