Skip to content

Commit b3a1252

Browse files
Updated docs to include null key in example config
1 parent 6dd1b30 commit b3a1252

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/config.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ php artisan vendor:publish
6767

6868
```php
6969
'converter' => [
70-
\Illuminate\Database\Eloquent\Model::class => [
70+
\Illuminate\Database\Eloquent\Model::class => [
7171
'handler' => \MarcinOrlowski\ResponseBuilder\Converters\ToArrayConverter::class,
7272
'key' => 'items',
73-
// 'pri' => 0,
73+
'pri' => 0,
7474
],
75-
\Illuminate\Database\Eloquent\Collection::class => [
76-
'handler' => \MarcinOrlowski\ResponseBuilder\Converters\ToArrayConverter::class,
77-
'key' => 'items',
78-
// 'pri' => 0,
75+
\Illuminate\Pagination\Paginator::class => [
76+
'handler' => \MarcinOrlowski\ResponseBuilder\Converters\ArrayableConverter::class,
77+
'key' => null,
78+
'pri' => 0,
7979
],
8080
],
8181
```

0 commit comments

Comments
 (0)