Paginator::swap()

static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void

Paginator::shouldReceive()

static Expectation shouldReceive() Initiate a mock expectation on the facade. Return Value Expectation

Paginator::setPath()

$this setPath(string $path) Set the base path to assign to all URLs. Parameters string $path Return Value $this

Paginator::setPageName()

$this setPageName(string $name) Set the query string variable used to store the page. Parameters string $name Return Value $this

Paginator::setFacadeApplication()

static void setFacadeApplication(Application $app) Set the application instance. Parameters Application $app Return Value void

Paginator::setCollection()

$this setCollection(Collection $collection) Set the paginator's underlying collection. Parameters Collection $collection Return Value $this

Paginator::resolveCurrentPath()

static string resolveCurrentPath(string $default = '/') Resolve the current request path or return the default value. Parameters string $default Return Value string

Paginator::resolveCurrentPage()

static int resolveCurrentPage(string $pageName = 'page', int $default = 1) Resolve the current page or return the default value. Parameters string $pageName int $default Return Value int

Paginator::render()

string render(string|null $view = null) Render the paginator using the given view. Parameters string|null $view Return Value string

Paginator::render()

string render(string|null $view = null) Render the paginator using a given view. Parameters string|null $view Return Value string