forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfractal.php
31 lines (27 loc) · 966 Bytes
/
fractal.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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.
|
*/
'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',
],
];