From b345a6a9479bf776fa0a56c3892dcb8a1cb8ef6a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 4 Jul 2022 10:51:52 +0800 Subject: [PATCH] fix customer export --- .../Controllers/Exports/ExportCustomersToExcelController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php index 1aff925d..39ea3dc5 100644 --- a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php +++ b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php @@ -28,7 +28,7 @@ class ExportCustomersToExcelController } public function export(ExportsCustomers $exportsCustomers, Request $request){ - return $exportsCustomers->download('customers.csv', Excel::XLS, ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']); + return $exportsCustomers->download('customers.csv', Excel::CSV, ['Content-Type' => 'text/csv']); } public function transactions(ExportsTransactions $exportsTransactions, Request $request){