hasMany(Course::class); } public function category_children() { return $this->hasMany(CourseCategoryChild::class); } }