laravel5-jsonapi-dingo icon indicating copy to clipboard operation
laravel5-jsonapi-dingo copied to clipboard

Alias names not used in Included key

Open davedriesmans opened this issue 9 years ago • 0 comments

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

davedriesmans avatar Aug 22 '16 10:08 davedriesmans