Skip to content

Commit

Permalink
export multiple sheets readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jul 10, 2018
1 parent 26b4da3 commit b19bad5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@ $users = (new FastExcel)->import('file.xlsx', function ($line) {
});
```

## Advanced usage

### Export multiple sheets

You can export multiple sheets by creating a `SheetCollection`:

```php
$sheets = new SheetCollection([
User::all(),
Project::all()
]);
$filename = FastExcel::collect($sheets)->export('users.xlsx');
```

## Why?

FastExcel is intended at being Laravel-flavoured [Spout](https://github.com/box/spout):
Expand Down

0 comments on commit b19bad5

Please sign in to comment.