ResponsableData
trait ResponsableData
Methods
Get the JSON serialization options for the resource response.
Get the request properties that may be included.
Get the request properties that may be excluded.
Get the request properties allowed by an only selection.
Get the request properties allowed by an except selection.
Get original collection items without transforming or enumerating them twice.
Details
at line 28
JsonResponse
toResponse(Request $request)
Create an HTTP response that represents the data object.
at line 67
static int
jsonOptions()
Get the JSON serialization options for the resource response.
at line 75
void
withResponse(Request $request, JsonResponse $response)
Customize the outgoing resource response.
at line 82
static array|null
allowedRequestIncludes()
Get the request properties that may be included.
at line 90
static array|null
allowedRequestExcludes()
Get the request properties that may be excluded.
at line 98
static array|null
allowedRequestOnly()
Get the request properties allowed by an only selection.
at line 106
static array|null
allowedRequestExcept()
Get the request properties allowed by an except selection.
at line 116
protected Collection
responseItems(BaseDataCollectable $data)
Get original collection items without transforming or enumerating them twice.