MetaFox

SavedListItemCollection extends ResourceCollection
in package

Table of Contents

Properties

$collects  : mixed
$extraMeta  : array<string|int, mixed>

Methods

paginationInformation()  : array<string|int, mixed>
setExtraMeta()  : $this
toArray()  : array<string|int, mixed>|Arrayable|JsonSerializable
Transform the resource into a JSON array.

Properties

Methods

paginationInformation()

public paginationInformation(Request $request, array<string|int, mixed> $paginated, array<string|int, mixed> $default) : array<string|int, mixed>
Parameters
$request : Request
$paginated : array<string|int, mixed>
$default : array<string|int, mixed>
Return values
array<string|int, mixed>

setExtraMeta()

public setExtraMeta(array<string|int, mixed> $attributes) : $this
Parameters
$attributes : array<string|int, mixed>
Return values
$this

toArray()

Transform the resource into a JSON array.

public toArray(Request $request) : array<string|int, mixed>|Arrayable|JsonSerializable
Parameters
$request : Request
Return values
array<string|int, mixed>|Arrayable|JsonSerializable

        
On this page

Search results