protected function paginated($results, $filters = array(), $size = 25)
    {
        return $results
            ->select($this->getTable() .'.*')
            ->paginate($size)
            ->appends($filters)
            ->appends('size', $size);
    }
protected function paginated($results, $filters = array(), $size = 25)
    {
        return $results
            ->select($this->getTable() .'.*')
            ->paginate($size)
            ->appends($filters)
            ->appends('size', $size);
    }
protected function paginated ( $ results , $ filters = array ( ) , $ size = 25 ) { return $ results -> select ( $ this -> getTable ( ) . '.*' ) -> paginate ( $ size ) -> appends ( $ filters ) -> appends ( 'size' , $ size ) ; }
Return the paginated result of the query

@param   Builder $results    The query builder that contains all the clauses that have been applied
@param   array $filters      The filters that are to be applied to the query. The key identifies the database column, the value in the array is the value that is to be matched in the query
@param   int $size           The amount of results that we expect to receive from the paginator
@return mixed
Return the paginated result of the query