LengthAwarePaginator
interface LengthAwarePaginator implements Paginator (View source)
Methods
$this
appends(array|string $key, string|null $value = null)
Add a set of query string values to the paginator.
from Paginator
$this|string
fragment(string|null $fragment = null)
Get / set the URL fragment to be appended to URLs.
from Paginator
string
render(string|null $view = null, array $data = [])
Render the paginator using a given view.
from Paginator
array
getUrlRange(int $start, int $end)
Create a range of pagination URLs.
int
total()
Determine the total number of items in the data store.
int
lastPage()
Get the page number of the last available page.
Details
$this
appends(array|string $key, string|null $value = null)
Add a set of query string values to the paginator.
$this|string
fragment(string|null $fragment = null)
Get / set the URL fragment to be appended to URLs.
bool
hasPages()
Determine if there are enough items to split into multiple pages.
string
render(string|null $view = null, array $data = [])
Render the paginator using a given view.
at line 14
array
getUrlRange(int $start, int $end)
Create a range of pagination URLs.
at line 21
int
total()
Determine the total number of items in the data store.
at line 28
int
lastPage()
Get the page number of the last available page.