Skip to content

Commit

Permalink
name sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Sep 5, 2018
1 parent 059442e commit 38fc472
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ $sheets = new SheetCollection([
(new FastExcel($sheets))->export('file.xlsx');
```

Use index to specify sheet name:
```php
$sheets = new SheetCollection([
'Users' => User::all(),
'Second sheet' => Project::all()
]);
```

### Import multiple sheets

Import multiple sheets by using `importSheets`:
Expand Down

0 comments on commit 38fc472

Please sign in to comment.