/** * Get a paginator only supporting simple next and previous links. * * This is more efficient on larger data-sets, etc. * * @param int $perPage * @param array $columns * @return \Nova\Pagination\Paginator */ public function simplePaginate($perPage = null, $columns = array('*')) { $paginator = $this->connection->getPaginator(); $page = $paginator->getCurrentPage(); $perPage = $perPage ?: $this->model->getPerPage(); $this->skip(($page - 1) * $perPage)->take($perPage + 1); return $paginator->make($this->get($columns), $perPage); }