/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/CourseClass.php (1466B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'course_classes';
protected $fillable = [
'course_id', 'coursechapter_id', 'title', 'duration', 'featured', 'status','url', 'size',
'image','video','pdf','zip', 'preview_video', 'preview_url', 'preview_type', 'date_time', 'audio', 'detail', 'position', 'aws_upload', 'type', 'user_id', 'file'
];
public function user()
{
return $this->belongsTo('App\User','user_id','id');
}
public function courses()
{
return $this->belongsTo('App\Course','course_id','id');
}
public function coursechapters()
{
return $this->belongsTo('App\CourseChapter','coursechapter_id','id');
}
public function viewprocess()
{
return $this->hasMany('App\ViewProcess','courseclass_id');
}
public function subtitle()
{
return $this->hasMany('App\Subtitle','c_id');
}
}