class Illuminate / Http / Resources / Json / PaginatedResourceResponse

PaginatedResourceResponse

Extends

Methods

public

toResponse ( $request ) : JsonResponse

Create an HTTP response that represents the object.

Parameters

protected

paginationInformation ( $request ) : array

Add the pagination information to the response.

Parameters

protected

Get the pagination links for the response.

Parameters

  • $paginated array
protected

meta ( $paginated ) : array

Gather the meta data for the response.

Parameters

  • $paginated array