/** * Get a paginator for an ungrouped statement. * * @param \Pagination\Factory $paginator * @param int $perPage * @param array $columns * @return \Pagination\Paginator */ protected function ungroupedPaginate($paginator, $perPage, $columns) { $total = $this->query->getPaginationCount(); $page = $paginator->getCurrentPage($total); $this->query->forPage($page, $perPage); return $paginator->make($this->get($columns)->all(), $total, $perPage); }
/** * Set the base URL in use by the paginator. * * @param string $baseUrl * @return void */ public function setBaseUrl($baseUrl) { $this->factory->setBaseUrl($baseUrl); }