public function paginate($limit = 25, $current = null)
    {
        $page = $this->getCurrentPage($current);

        $from = $limit * ($page - 1);
        $size = $limit;

        $result = $this->from($from)->size($size)->get();

        return new PlasticPaginator($result, $size, $page);
    }
public function paginate($limit = 25, $current = null)
    {
        $page = $this->getCurrentPage($current);

        $from = $limit * ($page - 1);
        $size = $limit;

        $result = $this->from($from)->size($size)->get();

        return new PlasticPaginator($result, $size, $page);
    }
public function paginate ( $ limit = 25 , $ current = null ) { $ page = $ this -> getCurrentPage ( $ current ) ; $ from = $ limit * ( $ page - 1 ) ; $ size = $ limit ; $ result = $ this -> from ( $ from ) -> size ( $ size ) -> get ( ) ; return new PlasticPaginator ( $ result , $ size , $ page ) ; }
Paginate result hits.

@param int      $limit
@param null|int $current

@return PlasticPaginator
Paginate result hits .