class AbstractPaginator (View source)
string | getUrlRange( int $start, int $end) Create a range of pagination URLs. | |
string | url( int $page) Get a URL for a given page number. | |
string|null | previousPageUrl() Get the URL for the previous page. | |
$this|string|null | fragment( string|null $fragment = null) Get / set the URL fragment to be appended to URLs. | |
$this | appends( array|string $key, string|null $value = null) Add a set of query string values to the paginator. | |
$this | addQuery( string $key, string $value) Add a query string value to the paginator. | |
array | items() Get the slice of items being paginated. | |
int | firstItem() Get the number of the first item in the slice. | |
int | lastItem() Get the number of the last item in the slice. | |
int | perPage() Get the number of items shown per page. | |
int | currentPage() Get the current page. | |
bool | hasPages() Determine if there are enough items to split into multiple pages. | |
static string | resolveCurrentPath( string $default = '/') Resolve the current request path or return the default value. | |
static void | currentPathResolver( Closure $resolver) Set the current request path resolver callback. | |
static int | resolveCurrentPage( string $pageName = 'page', int $default = 1) Resolve the current page or return the default value. | |
static void | currentPageResolver( Closure $resolver) Set the current page resolver callback. | |
static void | presenter( Closure $resolver) Set the default Presenter resolver. | |
string | getPageName() Get the query string variable used to store the page. | |
$this | setPageName( string $name) Set the query string variable used to store the page. | |
$this | setPath( string $path) Set the base path to assign to all URLs. | |
ArrayIterator | getIterator() Get an iterator for the items. | |
bool | isEmpty() Determine if the list of items is empty or not. | |
int | count() Get the number of items for the current page. | |
Collection | getCollection() Get the paginator's underlying collection. | |
bool | offsetExists( mixed $key) Determine if the given item exists. | |
mixed | offsetGet( mixed $key) Get the item at the given offset. | |
void | offsetSet( mixed $key, mixed $value) Set the item at the given offset. | |
void | offsetUnset( mixed $key) Unset the item at the given key. | |
mixed | __call( string $method, array $parameters) Make dynamic calls into the collection. | |
string | __toString() Render the contents of the paginator when casting to string. |
Create a range of pagination URLs.
Get a URL for a given page number.
Get the URL for the previous page.
Get / set the URL fragment to be appended to URLs.
Add a set of query string values to the paginator.
Add a query string value to the paginator.
Get the slice of items being paginated.
Get the number of the first item in the slice.
Get the number of the last item in the slice.
Get the number of items shown per page.
Get the current page.
Determine if there are enough items to split into multiple pages.
Resolve the current request path or return the default value.
Set the current request path resolver callback.
Resolve the current page or return the default value.
Set the current page resolver callback.
Set the default Presenter resolver.
Get the query string variable used to store the page.
Set the query string variable used to store the page.
Set the base path to assign to all URLs.
Get an iterator for the items.
Determine if the list of items is empty or not.
Get the number of items for the current page.
Get the paginator's underlying collection.
Determine if the given item exists.
Get the item at the given offset.
Set the item at the given offset.
Unset the item at the given key.
Make dynamic calls into the collection.
Render the contents of the paginator when casting to string.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Pagination/AbstractPaginator.html