UrlWindow (Pagination)
UrlWindow
class UrlWindow (View source)
Methods
void | __construct(LengthAwarePaginator $paginator) Create a new URL window instance. | |
static array | make(LengthAwarePaginator $paginator, int $onEachSide = 3) Create a new URL window instance. | |
array | get(int $onEachSide = 3) Get the window of URLs to be shown. | |
array | getAdjacentUrlRange(int $onEachSide) Get the page range for the current page window. | |
array | getStart() Get the starting URLs of a pagination slider. | |
array | getFinish() Get the ending URLs of a pagination slider. | |
bool | hasPages() Determine if the underlying paginator being presented has pages to show. |
Details
void __construct(LengthAwarePaginator $paginator)
Create a new URL window instance.
static array make(LengthAwarePaginator $paginator, int $onEachSide = 3)
Create a new URL window instance.
array get(int $onEachSide = 3)
Get the window of URLs to be shown.
array getAdjacentUrlRange(int $onEachSide)
Get the page range for the current page window.
array getStart()
Get the starting URLs of a pagination slider.
array getFinish()
Get the ending URLs of a pagination slider.
bool hasPages()
Determine if the underlying paginator being presented has pages to show.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Pagination/UrlWindow.html