Skip to content

Laravel Nova Resource Index Query not respecting ordering when scout is enabled #5730

@oluomotoso

Description

@oluomotoso
  • Laravel Version:10.8.0
  • Nova Version: 4.23.0
  • PHP Version: 8.2
  • Browser type and version: #.#
  • Reproduction Repository: https://github.com/###/###

Description:

When Laravel Scout is enabled - the resource index field is not respecting the default sort

Detailed steps to reproduce the issue on a fresh Nova installation:

Install and configure Laravel Nova with Laravel Scout enabled.
Create a resource in Laravel Nova with a default sorting defined in the indexQuery method.
Observe that the default sorting is not applied to the index results.

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