Revert "feat: [tenant] 컨텍스트 메뉴 테넌트 설정 + 콘솔 사이드바 DB 메뉴 적용"

This reverts commit cb254cf138.
This commit is contained in:
2026-03-13 21:21:21 +09:00
parent cb254cf138
commit c3bc7912dd
5 changed files with 87 additions and 165 deletions

View File

@@ -64,18 +64,5 @@ public function boot(): void
'favoriteMenuIds' => $menuService->getFavoriteMenuIds(),
]);
});
// 테넌트 콘솔 사이드바에 해당 테넌트의 메뉴 데이터 전달
View::composer('partials.tenant-console-sidebar', function ($view) {
$tenantId = $view->getData()['consoleTenantId'] ?? request()->route('tenantId');
if ($tenantId) {
$menuService = app(SidebarMenuService::class);
$menusBySection = $menuService->getTenantMenusBySection((int) $tenantId);
$view->with([
'tenantMainMenus' => $menusBySection['main'],
]);
}
});
}
}