interface
Illuminate
/
Contracts
/
Pagination
/
CursorPaginator
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
CursorPaginator
Methods
public
appends ( $key , $value ) : $this
Add a set of query string values to the paginator.
Parameters
- $key array|string|null
- $value string|null
public
fragment ( $fragment ) : $this|string|null
Get / set the URL fragment to be appended to URLs.
Parameters
- $fragment string|null
public
withQueryString ( ) : $this
Add all current query string values to the paginator.
public
previousPageUrl ( ) : string|null
Get the URL for the previous page, or null.
public
nextPageUrl ( ) : string|null
The URL for the next page, or null.
public
items ( ) : array
Get all of the items being paginated.
public
perPage ( ) : int
Determine how many items are being shown per page.
public
hasPages ( ) : bool
Determine if there are enough items to split into multiple pages.
public
path ( ) : string|null
Get the base path for paginator generated URLs.
public
isEmpty ( ) : bool
Determine if the list of items is empty or not.
public
isNotEmpty ( ) : bool
Determine if the list of items is not empty.
public
render ( $view , $data ) : string
Render the paginator using a given view.
Parameters
- $view string|null
- $data array