ResponsableData
interface ResponsableData implements Responsable
Methods
Response
static int
jsonOptions()
Get the JSON serialization options for the resource response.
void
static array|null
allowedRequestIncludes()
Get the request properties that may be included.
static array|null
allowedRequestExcludes()
Get the request properties that may be excluded.
static array|null
allowedRequestOnly()
Get the request properties allowed by an only selection.
static array|null
allowedRequestExcept()
Get the request properties allowed by an except selection.
Details
at line 17
Response
toResponse(Request $request)
Create an HTTP response that represents the data object.
at line 22
static int
jsonOptions()
Get the JSON serialization options for the resource response.
at line 27
void
withResponse(Request $request, JsonResponse $response)
Customize the outgoing resource response.
at line 32
static array|null
allowedRequestIncludes()
Get the request properties that may be included.
at line 37
static array|null
allowedRequestExcludes()
Get the request properties that may be excluded.
at line 42
static array|null
allowedRequestOnly()
Get the request properties allowed by an only selection.
at line 47
static array|null
allowedRequestExcept()
Get the request properties allowed by an except selection.