/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/SubCategory.php (1057B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'sub_categories';
protected $fillable = [
'title','icon','slug','featured','status', 'category_id'
];
public function childcategory()
{
return $this->hasMany('App\ChildCategory','subcategory_id');
}
public function categories()
{
return $this->belongsTo('App\Categories','category_id','id');
}
public function courses()
{
return $this->hasMany('App\Course','subcategory_id');
}
}