hasMany(Route::class, 'parent_id'); } public function children(){ return $this->route()->with('children'); } }