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