public function getPaginated($page = 1, $limit = 10)
    {
        $query = $this->make();
        $collection = $query->forPage($page, $limit)->get();
        return new PaginatedResult($page, $limit, $collection->count(), $collection);
    }
public function getPaginated($page = 1, $limit = 10)
    {
        $query = $this->make();
        $collection = $query->forPage($page, $limit)->get();
        return new PaginatedResult($page, $limit, $collection->count(), $collection);
    }
public function getPaginated ( $ page = 1 , $ limit = 10 ) { $ query = $ this -> make ( ) ; $ collection = $ query -> forPage ( $ page , $ limit ) -> get ( ) ; return new PaginatedResult ( $ page , $ limit , $ collection -> count ( ) , $ collection ) ; }
returns paginated result

@param int $page
@param int $limit
@return PaginatedResult
returns paginated result