This commit is contained in:
RafficMohammed
2023-02-28 19:25:06 +05:30
parent 555b881753
commit 40809202df
8 changed files with 10 additions and 8 deletions

View File

@@ -16,6 +16,6 @@ class ExcelController extends Controller
throw new Exception('No data');
}
//dd(Excel::download(new UserExport($data), $filename.'.'.'xls'));
return Excel::download(new UserExport(), $filename.'.'.'xls');
return Excel::download(new UserExport($data), $filename.'.'.'xlsx');
}
}