We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7982581 commit 08411edCopy full SHA for 08411ed
3.1/exports/from-view.md
@@ -24,7 +24,7 @@ class InvoicesExport implements FromView
24
}
25
```
26
27
-It will convert an HTML table into an Excel spreadsheet. For example; `users.blade.php`:
+It will convert an HTML table into an Excel spreadsheet. For example; `invoices.blade.php`:
28
29
```html
30
<table>
@@ -35,10 +35,10 @@ It will convert an HTML table into an Excel spreadsheet. For example; `users.bla
35
</tr>
36
</thead>
37
<tbody>
38
- @foreach($users as $user)
+ @foreach($invoices as $invoice)
39
<tr>
40
- <td>{{ $user->name }}</td>
41
- <td>{{ $user->email }}</td>
+ <td>{{ $invoice->name }}</td>
+ <td>{{ $invoice->email }}</td>
42
43
@endforeach
44
</tbody>
0 commit comments