<TKey is array-key, out TValue>extends |
AbstractCursorPaginator<TKey, TValue> |
|---|---|
implements |
Arrayable<TKey, TValue>, ArrayAccess<TKey, TValue>, Countable, IteratorAggregate<TKey, TValue>, Jsonable, JsonSerializable, CursorPaginator<TKey, TValue> |
| Methods | ||
|---|---|---|
public
|
__construct(
Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items,
int $perPage,
Cursor|null $cursor = null,
array $options = [],
)
|
# |
protected
|
setItems(Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items): void
|
# |
public
|
links(string|null $view = null, array $data = []): Htmlable
|
# |
public
|
render(string|null $view = null, array $data = []): Htmlable
|
# |
public
|
hasMorePages(): bool
|
# |
public
|
hasPages(): bool
|
# |
public
|
onFirstPage(): bool
|
# |
public
|
onLastPage(): bool
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
public
|
toJson(int $options = 0): string
|
# |
| Methods used from Illuminate\Support\Traits\ForwardsCalls |
|---|
forwardCallTo(), forwardDecoratedCallTo(), throwBadMethodCallException() |
| Methods used from Illuminate\Support\Traits\Tappable |
|---|
tap() |
| Methods used from Illuminate\Support\Traits\TransformsToResourceCollection |
|---|
toResourceCollection(), guessResourceCollection() |
| Properties | |||
|---|---|---|---|
protected
|
|
$hasMore
|
# |
| Properties inherited from Illuminate\Pagination\AbstractCursorPaginator |
|---|
$items, $perPage, $path, $query, $fragment, $cursorName, $cursor, $parameters, $options, $currentCursorResolver |