I am using laravel-excel.com in my Laravel project.
Since data is not coming from a specific model, I didn't want to create a dummy model class and I generate the excel file directly:
return (new \Illuminate\Support\Collection($data))->downloadExcel(
'informe.xlsx',
null,
false
);
($data
is a two-dimensional array with data of the unique data-sheet)
I wonder if there is any way to apply some style on columns (width, font-weight, etc.).
As far as I see it is possible ( like explained here) if I create a model for this excel.
Is it possible without?