rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.1k stars 246 forks source link

How to add Extra rows before the real data #292

Open gheesixz opened 2 years ago

gheesixz commented 2 years ago

Hi is there any way to add atleast blank rows before the data?? Some website requires to have their custom headers/template present. In my case, i need to make a custom rows atleast 4 rows before the real data comes in.

StefanoTesla commented 2 years ago

Yes really easy, you need to push a new attribute to the array/collection

foreach $datapage as $data{ array_push($data['mycolun']); }