Skip to content

Commit d52ab33

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,11 @@ public function xmlToPdf()
308308
**Do not forget to write your route**
309309

310310
```php
311-
Route::get('xml', 'ReportsController@xmlToPdf');
311+
Route::get('reports/xml', 'ReportsController@xmlToPdf');
312312
```
313+
and just run:
314+
315+
http://localhost:8000/reports/json
313316

314317
**Note 3:**
315318

@@ -363,9 +366,13 @@ public function jsonToPdf()
363366
**Do not forget to write your route**
364367

365368
```php
366-
Route::get('json', 'ReportsController@jsonToPdf');
369+
Route::get('reports/json', 'ReportsController@jsonToPdf');
367370
```
368371

372+
and just run:
373+
374+
http://localhost:8000/reports/json
375+
369376
**Note 4:**
370377

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

0 commit comments

Comments
 (0)