diff --git a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php index 09961cb7..503126fe 100644 --- a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php +++ b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php @@ -154,7 +154,8 @@ class ExportCustomersToExcelController { $exportsTransactions = new ExportsWalletTransactions($request); - switch ($request->get('type')) { + $type = $request->get('type'); + switch ($type) { case 'payment': $exportFileName = 'wallet-payment-transactions.xls'; break;