Skip to content

On setting the current page in paginate() function #123

@makoru-hikage

Description

@makoru-hikage

There is only one parameter in paginate, $items. If someone wants to go to page 2, how shall it be done?

In Illuminate\Database\Query\Builder, the paginate method has four arguments:

public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)

If Repofuck's paginate shall be refactored, it must supply the corresponding arguments: $this->paginates, $this->columns, null, $page_number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions