protected function paginateList(Builder $query): void
    {
        $this->setAttribute('list', $query->paginate($this->getAttribute('rowsNumber')));
        $this->getAttribute('list')->appends([
            'rowsNumber' => $this->getAttribute('rowsNumber'),
            'search'     => $this->getAttribute('search'),
            'sortBy'     => $this->getAttribute('sortBy'),
            'sortDir'    => $this->getAttribute('sortDir'),
        ]);
    }
protected function paginateList(Builder $query): void
    {
        $this->setAttribute('list', $query->paginate($this->getAttribute('rowsNumber')));
        $this->getAttribute('list')->appends([
            'rowsNumber' => $this->getAttribute('rowsNumber'),
            'search'     => $this->getAttribute('search'),
            'sortBy'     => $this->getAttribute('sortBy'),
            'sortDir'    => $this->getAttribute('sortDir'),
        ]);
    }
protected function paginateList ( Builder $ query ) : void { $ this -> setAttribute ( 'list' , $ query -> paginate ( $ this -> getAttribute ( 'rowsNumber' ) ) ) ; $ this -> getAttribute ( 'list' ) -> appends ( [ 'rowsNumber' => $ this -> getAttribute ( 'rowsNumber' ) , 'search' => $ this -> getAttribute ( 'search' ) , 'sortBy' => $ this -> getAttribute ( 'sortBy' ) , 'sortDir' => $ this -> getAttribute ( 'sortDir' ) , ] ) ; }
Paginate the list from the query.

@param \Illuminate\Database\Eloquent\Builder $query

@return void
Paginate the list from the query .