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