Skip to content

Predefined column names for relations #96

@salmanhijazi

Description

@salmanhijazi

Hello, thank you for the great package!

I have a suggest, or a request. In order to simplify the work for the frontend dev, and also in cases where you don't want to share table/column information, there should be a way to predefine the column on the relation that should be used for searching. For example:

properties?filters[fruit][name][$eq]=apple

I should be able to do something like:

protected $renamedFilterFields = [
    'fruit.name' => 'fruit',
];

So the query can then just be:

properties?filters[fruit][$eq]=apple

I think this would simplify things for frontend work. Thoughts?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions