Skip to content

Commit 337e076

Browse files
authored
Update README.md
1 parent 658372f commit 337e076

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,14 @@ public function xmlToPdf()
303303
unlink($output.'.'.$ext);
304304
}
305305
```
306+
307+
308+
**Do not forget to write your route**
309+
310+
```php
311+
Route::get('xml', 'ReportsController@xmlToPdf');
312+
```
313+
306314
**Note 3:**
307315

308316
To use the example above you must copy the sample files located at:
@@ -351,6 +359,13 @@ public function jsonToPdf()
351359
unlink($output.'.'.$ext);
352360
}
353361
```
362+
363+
**Do not forget to write your route**
364+
365+
```php
366+
Route::get('json', 'ReportsController@jsonToPdf');
367+
```
368+
354369
**Note 4:**
355370

356371
To use the example above you must copy the sample files located at:

0 commit comments

Comments
 (0)