Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$appends variables function got additional 3 times execution #1797

Open
mahadi-siregar opened this issue Jan 27, 2022 · 0 comments
Open

$appends variables function got additional 3 times execution #1797

mahadi-siregar opened this issue Jan 27, 2022 · 0 comments

Comments

@mahadi-siregar
Copy link

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

  • add $appends variable on the model
  • write a log on the get{$Variable}Attribute function and the log will written 3 times for each item
@mahadi-siregar mahadi-siregar changed the title $appends variables got additional 3 times execution $appends variables function got additional 3 times execution Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant