I want to read an xlsx
file that was created in Microsoft Excel, but when I run the following code...
$Source_File = \"test.xlsx\";
$Spreadsheet
Use this. It will show the .xlsx
$inputFileName = public_path('asset/docs/Filename.xlsx');
/** Load $inputFileName to a Spreadsheet Object **/
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName);
$writer = IOFactory::createWriter($spreadsheet, 'Html');
$message = $writer->save('php://output');