Skip to content

Error when querying with "sort" and "page" parameters. #295

@cswgr

Description

@cswgr

In Laravel 11.20.0 I get this error when using a GET request with "sort" and "page" parameters together:

LaravelJsonApi\Eloquent\Pagination\PagePagination::LaravelJsonApi\Eloquent\Pagination\{closure}(): Argument #1 ($order) must be of type array, int given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php on line 208

For example when using ?page[number]=1&page[size]=1&sort=email.

Is maybe something wrong with the query string I don't get?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy