Skip to content

Commit 9e9633f

Browse files
Update collection.md
1 parent 4df4d94 commit 9e9633f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

3.1/exports/collection.md

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ class InvoicesExport implements FromCollection, WithStrictNullComparison
9797
}
9898
```
9999

100+
### Storing raw contents
101+
102+
If you want to receive the raw contents of the exported file, you can use the `raw()` method:
103+
104+
```php
105+
$contents = Excel::raw(new InvoicesExport);
106+
```
107+
100108
### Collection macros
101109

102110
The package provides some macro to Laravel's collection class to easily download or store a collection.

0 commit comments

Comments
 (0)