Skip to content

Alias names not used in Included key #3

@davedriesmans

Description

@davedriesmans

You can create an alias like this

public function getAliasedProperties()
{
        return [
            'dbkey'       => 'jsonkey',
}

the json attributed will show jsonkey. perfect.

Only when you have a relationship the included key will still show dbkey

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions