laravel5-jsonapi-dingo
laravel5-jsonapi-dingo copied to clipboard
Alias names not used in Included key
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