mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
More work on the API utilizing Laravel 5.5 exception rendering
Also corrects API format to maintain JSONAPI spec
This commit is contained in:
@@ -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',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user