dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

$appends variables function got additional 3 times execution #1797

Open mahadi-siregar opened 2 years ago

mahadi-siregar commented 2 years ago
Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.5.y & ^8.0
Package version v2.0.0-alpha1 & ^3.0
PHP version 7.x.y

Actual Behaviour

get{$Variable}Attribute of $appends variable on the eloquent model got 3 times additional execution when the response returned using single item response function (return $this->response->item)

Steps to Reproduce