More work on the API utilizing Laravel 5.5 exception rendering
Also corrects API format to maintain JSONAPI spec
This commit is contained in:
parent
f30f4b45ba
commit
54b6fb5ebd
28 changed files with 464 additions and 391 deletions
|
@ -13,4 +13,19 @@ return [
|
|||
*/
|
||||
|
||||
'default_serializer' => League\Fractal\Serializer\JsonApiSerializer::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Includes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If enabled Fractal will automatically add the includes who's
|
||||
| names are present in the `include` request parameter.
|
||||
|
|
||||
*/
|
||||
|
||||
'auto_includes' => [
|
||||
'enabled' => true,
|
||||
'request_key' => 'include',
|
||||
],
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue