Skip to content

Commit ff941d7

Browse files
committed
fixed exception namespace
1 parent 525c2b8 commit ff941d7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ php artisan vendor:publish
2323

2424
### Example
2525
```php
26+
//default template from xml.php config file like: '<root></root>'
2627
Route::get('/', function () {
2728
return response()->xml(User::all());
2829
});
30+
31+
32+
// custom template like: '<result></result>'
33+
Route::get('/foo', function () {
34+
return response()->xml(['foo' => 1, 'bar' => 2, 'baz' => 3], '<result></result>);
35+
});
2936
```
3037

3138
## Team

src/XmlResponse/XmlResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Support\Facades\Response;
66
use Illuminate\Container\Container;
7-
use Tartan\XmlResponse\Exception\XmlResponseException;
7+
use Joker\XmlResponse\Exception\XmlResponseException;
88

99
/**
1010
* Class XmlResponse

0 commit comments

Comments
 (0)