/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/Answer.php (1165B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'answers';
protected $fillable = ['instructor_id', 'ans_user_id', 'ques_user_id', 'course_id', 'question_id', 'answer', 'status',];
public function user()
{
return $this->belongsTo('App\User', 'ans_user_id','id');
}
public function courses()
{
return $this->belongsTo('App\Course','course_id','id');
}
public function question()
{
return $this->belongsTo('App\Question','question_id','id');
}
public function instructor()
{
return $this->belongsTo('App\User', 'instructor_id','id');
}
}