2017-04-02 06:49:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Serializer
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The default serializer to be used when performing a transformation. It
|
|
|
|
| may be left empty to use Fractal's default one. This can either be a
|
|
|
|
| string or a League\Fractal\Serializer\SerializerAbstract subclass.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2017-04-02 22:51:56 +02:00
|
|
|
'default_serializer' => League\Fractal\Serializer\JsonApiSerializer::class,
|
2017-12-17 21:57:05 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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',
|
|
|
|
],
|
2017-04-02 06:49:53 +02:00
|
|
|
];
|