ResourceInterface
in
Table of Contents
Methods
- all() : PaginatedResponse
- Fetch all items with optional parameters
- get() : array<string|int, mixed>
- Fetch a single item by ID
- query() : PaginatedResponse
- Custom query with parameters
Methods
all()
Fetch all items with optional parameters
public
all([array<string, mixed> $params = [] ]) : PaginatedResponse
Parameters
- $params : array<string, mixed> = []
Return values
PaginatedResponseget()
Fetch a single item by ID
public
get(int $id) : array<string|int, mixed>
Parameters
- $id : int
Return values
array<string|int, mixed>query()
Custom query with parameters
public
query(array<string, mixed> $params) : PaginatedResponse
Parameters
- $params : array<string, mixed>