Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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