October\Rain\Database\Concerns\HasNicerPagination

Overview

HasNicerPagination for a query builder


Public Methods

public paginateAtPage()

public paginateAtPage(
    int $perPage,
    int $currentPage
): Illuminate\Contracts\Pagination\LengthAwarePaginator 

paginateAtPage paginates by passing the page number directly

public paginateCustom()

public paginateCustom(
    int $perPage,
    string $pageName
): Illuminate\Contracts\Pagination\LengthAwarePaginator 

paginateCustom paginates using a custom page name.

public simplePaginateAtPage()

public simplePaginateAtPage(
    int $perPage,
    int $currentPage
): Illuminate\Contracts\Pagination\Paginator 

simplePaginateAtPage simply paginates by passing the page number directly

public simplePaginateCustom()

public simplePaginateCustom(
    int $perPage,
    string $pageName
): Illuminate\Contracts\Pagination\Paginator 

simplePaginateCustom simply paginates using a custom page name.