8000 $appends variables function got additional 3 times execution · Issue #1797 · dingo/api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
$appends variables function got additional 3 times execution #1797
Open
@mahadi-siregar

Description

@mahadi-siregar
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0