Skip to content

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

Open
@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