public function morph($format = 'json')
{
$this->content = $this->getOriginalContent();
...
}
If $content is a eloquent model instance, it will be encoded twice before it be overridden by transformer. Three times encoding for for each response, It is a big problem, right ?
https://github.com/dingo/api/blob/master/src/Http/Response.php#L174
https://github.com/dingo/api/blob/master/src/Http/Response.php#L80
https://github.com/dingo/api/blob/master/src/Http/Response.php#L112
If $content is a eloquent model instance, it will be encoded twice before it be overridden by transformer. Three times encoding for for each response, It is a big problem, right ?