Laravel-excel: How To $sheet->with(collect($array)); start from row 8

Created on 10 Apr 2017  路  1Comment  路  Source: Maatwebsite/Laravel-Excel

Please prefix your issue with one of the following: [QUESTION].

Package version, Laravel version

"maatwebsite/excel": "~2.1.0" ,"Laravel 5.3"

Expected behaviour

1

Actual behaviour

Exception stack trace

Screenshot of Excel file

2

The red colour is wrong . $sheet->with(collect($array)); start from row 1.

Steps to reproduce the behaviour

Most helpful comment

You have to use fromArray for that: $sheet->fromArray($array, null, 'A8')

>All comments

You have to use fromArray for that: $sheet->fromArray($array, null, 'A8')

Was this page helpful?
0 / 5 - 0 ratings