We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28214a4 commit 84575edCopy full SHA for 84575ed
3.1/exports/mapping.md
@@ -48,3 +48,24 @@ class InvoicesExport implements FromQuery, WithHeadings
48
}
49
50
```
51
+
52
+If you need to have multiple heading rows, you can return multiple rows from the `headings()` method:
53
54
+```
55
+```php
56
57
+use Maatwebsite\Excel\Concerns\FromQuery;
58
+use Maatwebsite\Excel\Concerns\WithHeadings;
59
60
+class InvoicesExport implements FromQuery, WithHeadings
61
+{
62
+ public function headings(): array
63
+ {
64
+ return [
65
+ ['First row', 'First row']
66
+ ['Second row', 'Second row'],
67
+ ];
68
+ }
69
+}
70
71
+``
0 commit comments