Skip to content

Commit 08411ed

Browse files
authored
Updated the example blade (SpartnerNL#154)
Example blade didn't match the InvoicesExport view example
1 parent 7982581 commit 08411ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

3.1/exports/from-view.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class InvoicesExport implements FromView
2424
}
2525
```
2626

27-
It will convert an HTML table into an Excel spreadsheet. For example; `users.blade.php`:
27+
It will convert an HTML table into an Excel spreadsheet. For example; `invoices.blade.php`:
2828

2929
```html
3030
<table>
@@ -35,10 +35,10 @@ It will convert an HTML table into an Excel spreadsheet. For example; `users.bla
3535
</tr>
3636
</thead>
3737
<tbody>
38-
@foreach($users as $user)
38+
@foreach($invoices as $invoice)
3939
<tr>
40-
<td>{{ $user->name }}</td>
41-
<td>{{ $user->email }}</td>
40+
<td>{{ $invoice->name }}</td>
41+
<td>{{ $invoice->email }}</td>
4242
</tr>
4343
@endforeach
4444
</tbody>

0 commit comments

Comments
 (0)