menuRepositoryInterface = $menuRepositoryInterface; $this->menu = $this->menuRepositoryInterface->getTree(); } // public function routeName($routeName, $param) // { // return $routeName ? route($routeName, $param) : '#'; // } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.siderbar-user'); } }