public function paginate()
    {
        $count = count($this->_model->all());
        $this->_totalPages = ceil($count / $this->_limit);
        $page_at_offset = floor($this->_page + 1 / $this->_limit);
        $this->_offset = ($page_at_offset - 1) * $this->_limit;

        $this->_results = $this->_model->select($this->_capsule, $this->_limit, $this->_offset);

        return $this;
    }
public function paginate()
    {
        $count = count($this->_model->all());
        $this->_totalPages = ceil($count / $this->_limit);
        $page_at_offset = floor($this->_page + 1 / $this->_limit);
        $this->_offset = ($page_at_offset - 1) * $this->_limit;

        $this->_results = $this->_model->select($this->_capsule, $this->_limit, $this->_offset);

        return $this;
    }
public function paginate ( ) { $ count = count ( $ this -> _model -> all ( ) ) ; $ this -> _totalPages = ceil ( $ count / $ this -> _limit ) ; $ page_at_offset = floor ( $ this -> _page + 1 / $ this -> _limit ) ; $ this -> _offset = ( $ page_at_offset - 1 ) * $ this -> _limit ; $ this -> _results = $ this -> _model -> select ( $ this -> _capsule , $ this -> _limit , $ this -> _offset ) ; return $ this ; }
Handles the pagination.

@return \Scara\Pagination\Pagination
Handles the pagination .