fix(board): 게시판 URL tenant_id 처리 및 게시글 수 표시 추가

- Route Model Binding → 수동 조회로 변경 (board_code + tenant_id)
- PostController: resolveBoard() 헬퍼 추가
  - t 파라미터 → 시스템 게시판 → 로그인 회원 tenant 순서
- 사이드바 메뉴 리다이렉트: tenant_id ?? 1 fallback 추가
  - SidebarMenuService와 동일한 로직으로 일관성 확보
- 게시판 목록 테이블에 게시글 수 컬럼 추가
- 모든 posts View에 tenant_id 파라미터 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-28 01:30:50 +09:00
parent 5b8ecf02ab
commit a30410643b
13 changed files with 192 additions and 70 deletions

View File

@@ -17,9 +17,8 @@ public function __construct(
public function index(): View
{
$boardTypes = $this->boardService->getBoardTypes();
$tenants = $this->boardService->getTenantList();
return view('boards.index', compact('boardTypes', 'tenants'));
return view('boards.index', compact('boardTypes'));
}
/**