/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/Assignment.php (1174B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'assignments';
protected $fillable = ['user_id', 'instructor_id', 'course_id', 'title', 'assignment', 'type', 'chapter_id', 'detail', 'rating'];
public function user()
{
return $this->belongsTo('App\User','user_id','id');
}
public function courses()
{
return $this->belongsTo('App\Course','course_id','id');
}
public function chapter()
{
return $this->belongsTo('App\CourseChapter','chapter_id','id');
}
public function instructor()
{
return $this->belongsTo('App\User','instructor_id','id');
}
}