attributes['result']); } public function setResultAttribute($value) { $this->attributes['result'] = json_encode($value, JSON_UNESCAPED_UNICODE); } public function Question() { return $this->belongsTo('App\EmplQuestion','question_id'); } public function User() { return $this->belongsTo('App\User','user_id')->select(['name','id','detail','birthday','cell_number','email']); } }