Skip to content

Paginate method doesn't work if key contains array notation #20624

@eithed

Description

@eithed
  • Laravel Version: 5.4
  • PHP Version: 7.1

Description:

If pagination key is of array notation (ie. page[published], page[unpublished]) when on ?page[published]=5 the value is not taken into consideration (it still displays first page)

Steps To Reproduce:

  1. Paginate given dataset using paginate(10, ['*'], 'page[published]')
  2. Display given dataset on view using links()
  3. Go to one of the urls generated by the pagination

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