interface Countable implements Listable

Methods

object
query(Context $context)

Create a query object for the current request.

from Listable
iterable
results(object $query, Context $context)

Get results from the given query.

from Listable
array
filters()

Filters that can be applied to the resource list.

from Listable
array
sorts()

Sorts that can be applied to the resource list.

from Listable
array
resolveSorts()

Resolve the sorts for this resource.

from Listable
int|null
count(object $query, Context $context)

Count the models for the given query.

Details

object query(Context $context)

Create a query object for the current request.

Parameters

Context $context

Return Value

object

iterable results(object $query, Context $context)

Get results from the given query.

Parameters

object $query
Context $context

Return Value

iterable

array filters()

Filters that can be applied to the resource list.

Return Value

array

array sorts()

Sorts that can be applied to the resource list.

Return Value

array

array resolveSorts()

Resolve the sorts for this resource.

Return Value

array

int|null count(object $query, Context $context)

Count the models for the given query.

Parameters

object $query
Context $context

Return Value

int|null