How to use use appended attribute in controller in laravel?

前端 未结 0 1061
闹比i
闹比i 2021-01-30 08:55

This is my model where i have appended order Attribute

protected $appends = [
  \'order\'
];

    public function getOrderAttribute(){
       return $this->get         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题