Skip to content

filterable() and Status fields #5030

@tommiekn

Description

@tommiekn
  • Laravel Version: 9.38.0
  • Nova Version: 4.18.2
  • PHP Version: 8.1.11

Description:

filterable() doesn't work with Status fields.

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

While using filterable() method in a Status field, it returns the error:
"$filterable needs to be callable/closure"

Haven't found anything about this issue, either in the docs. For my understanding filterable() should work on any kind of field.

Status::make('Status')
            ->loadingWhen(['pending',])
            ->failedWhen(['failed',])->filterable(),

Is still possible to create a custom filter and use that to filter it, that works. Only the filterable() doesnt work.

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