Skip to content

Commit

Permalink
ampliar memoria excel
Browse files Browse the repository at this point in the history
  • Loading branch information
elsoftpy committed Jun 18, 2024
1 parent 3fad1fd commit fa471c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/ReporteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -1660,6 +1660,7 @@ public function resultadosExcel(Request $request){
$cells->setAlignment('center');
});
}

$sheet->fromArray($detalle, null, 'A1');

});
Expand Down

0 comments on commit fa471c0

Please sign in to comment.