getActiveSheet(); $sheet->setCellValue('A1', 'Hello World!'); // Yeni bir Xlsx dosya yazıcı oluştur $writer = new Xlsx($spreadsheet); // Dosya yolu $outputFilePath = 'storage/documents/test/output/output.xlsx'; // Dosyayı kaydet $writer->save($outputFilePath); echo "Dosya başarıyla Xlsx olarak kaydedildi: $outputFilePath"; } catch (Exception $e) { echo 'Hata: ' . $e->getMessage(); } ?>