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 fdd54a7 commit 03d2386Copy full SHA for 03d2386
README.md
@@ -30,14 +30,23 @@ composer require avadim/fast-excel-laravel
30
And then you can use facade ```Excel```
31
32
```php
33
-// Create workbook
+// Create workbook...
34
$excel = \Excel::create();
35
-// do something...
+
36
+// export model...
37
+$sheet->->withHeadings()->exportModel(Users::class);
38
39
// and save XLSX-file to default storage
40
$excel->saveTo('path/file.xlsx');
41
42
// or save file to specified disk
43
$excel->store('disk', 'path/file.xlsx');
44
45
+// Open saved workbook
46
+$excel = \Excel::open(storage_path('path/file.xlsx'));
47
48
+// import records to database
49
+$excel->importModel(User::class);
50
```
51
52
Jump To:
0 commit comments