/** * Get a paginator only supporting simple next and previous links. * * This is more efficient on larger data-sets, etc. * * @param int $perPage count of list * @param array $columns get columns * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator */ public function simplePaginate($perPage, array $columns = ['*']) { if ($this->dynamic === false) { $this->query->simplePaginate($perPage, $columns); } if ($this->proxy === true) { $this->query = $this->getProxyManager()->get($this->query); } return $this->query->simplePaginate($perPage, $columns); }
/** * Get a paginator only supporting simple next and previous links. * * This is more efficient on larger data-sets, etc. * * @param int $perPage count of list * @param array $columns get columns * @param string $pageName page parameter name * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator */ public function simplePaginate($perPage = 15, $columns = ['*'], $pageName = 'page') { if ($this->dynamic === false) { parent::simplePaginate($perPage, $columns); } if ($this->proxy === true) { $this->getProxyManager()->get($this); } return parent::simplePaginate($perPage, $columns); }