hasMany(Category::class); } public function childrenCategories() { return $this->hasMany(Category::class)->with('categories'); } }