Skip to content

Commit bb6c259

Browse files
authored
Update README.md
1 parent 17285bd commit bb6c259

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ Or in your 'composer.json' file add:
231231
}
232232
}
233233
```
234+
234235
2. And the just run:
235236

236237
**composer update**
@@ -243,13 +244,9 @@ Or in your 'composer.json' file add:
243244

244245
5. Copy the file **hello_world.jrxml** in **/vendor/geekcom/phpjasper/examples** from directory: **/public/report**
245246

246-
6. Run **php artisan serve**
247-
248-
7. Access **localhost:8000/reports**
247+
6. Copy and paste the code below to your **route.php** file
249248

250-
8. Check the directory **/public/report**. You now have 3 files, `hello_world.pdf`, `hello_world.rtf` and `hello_world.xml`.
251-
252-
**Below the code you will use in your route.php**
249+
**Note 3:** In laravel 5.3 your routes files it's located on directory /routes
253250

254251
```php
255252
use JasperPHP\JasperPHP;
@@ -267,8 +264,14 @@ Route::get('/reports', function () {
267264
)->execute();
268265
});
269266
```
270-
In this example we generate reports pdf, rtf and xml.
271267

268+
7. Run **php artisan serve**
269+
270+
8. Access **localhost:8000/reports**
271+
272+
9. Check the directory **/public/report**. You now have 3 files, `hello_world.pdf`, `hello_world.rtf` and `hello_world.xml`.
273+
274+
In this example we generate reports pdf, rtf and xml.
272275

273276
###Reports from a xml in PHP/Laravel 5.*
274277

0 commit comments

Comments
 (0)