Paginator

Paginator class Paginator extends Facade (View source) Methods static void swap(mixed $instance) Hotswap the underlying instance behind the facade. from Facade static Expectation shouldReceive() Initiate a mock expectation on the facade. from Facade static mixed getFacadeRoot() Get the root object behind the facade. from Facade static void clearResolvedInstance(string $name) Clear a resolved facade instance. from Facade static void clearResolvedInstances() Clear all of the

Paginator::addQuery()

$this addQuery(string $key, string $value) Add a query string value to the paginator. Parameters string $key string $value Return Value $this

Paginator::appends()

$this appends(array|string $key, string|null $value = null) Add a set of query string values to the paginator. Parameters array|string $key string|null $value Return Value $this

Paginator::appends()

$this appends(array|string $key, string|null $value = null) Add a set of query string values to the paginator. Parameters array|string $key string|null $value Return Value $this

Paginator::clearResolvedInstance()

static void clearResolvedInstance(string $name) Clear a resolved facade instance. Parameters string $name Return Value void

Paginator::clearResolvedInstances()

static void clearResolvedInstances() Clear all of the resolved instances. Return Value void

Paginator::count()

int count() Get the number of items for the current page. Return Value int

Paginator::currentPage()

int currentPage() Determine the current page being paginated. Return Value int

Paginator::currentPage()

int currentPage() Get the current page. Return Value int

Paginator::currentPageResolver()

static void currentPageResolver(Closure $resolver) Set the current page resolver callback. Parameters Closure $resolver Return Value void