From fa471c0256e628bc498bd5bb54231ccccdfd4b4b Mon Sep 17 00:00:00 2001 From: elsoftpy Date: Tue, 18 Jun 2024 10:43:06 -0400 Subject: [PATCH] ampliar memoria excel --- app/Http/Controllers/ReporteController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ReporteController.php b/app/Http/Controllers/ReporteController.php index b934e24..4747c91 100644 --- a/app/Http/Controllers/ReporteController.php +++ b/app/Http/Controllers/ReporteController.php @@ -1294,7 +1294,7 @@ public function resultados(){ public function resultadosExcel(Request $request){ ini_set('max_execution_time', 0); - ini_set('memory_limit', '512M'); + ini_set('memory_limit', '1024M'); $periodo_array = explode('-', $request->periodo); $periodo = $periodo_array[0]; $rubro = $periodo_array[1]; @@ -1660,6 +1660,7 @@ public function resultadosExcel(Request $request){ $cells->setAlignment('center'); }); } + $sheet->fromArray($detalle, null, 'A1'); });