fix: [pmis] validation exists 규칙에 codebridge connection 지정

- exists:pmis_* → exists:codebridge.pmis_* 변경 (4개 컨트롤러, 10곳)
- 원인: 모델은 codebridge connection이지만 validation은 기본 connection(sam) 사용
This commit is contained in:
김보곤
2026-03-19 20:25:27 +09:00
parent 39a8d8e2df
commit 9c30cb992d
4 changed files with 10 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ public function workerStore(Request $request): JsonResponse
$validated = $request->validate([
'company_name' => 'required|string|max:200',
'trade_name' => 'required|string|max:100',
'job_type_id' => 'nullable|exists:pmis_job_types,id',
'job_type_id' => 'nullable|exists:codebridge.pmis_job_types,id',
'name' => 'required|string|max:50',
'phone' => 'nullable|string|max:20',
'birth_date' => 'nullable|string|max:6',
@@ -77,7 +77,7 @@ public function workerUpdate(Request $request, int $id): JsonResponse
$validated = $request->validate([
'company_name' => 'sometimes|required|string|max:200',
'trade_name' => 'sometimes|required|string|max:100',
'job_type_id' => 'nullable|exists:pmis_job_types,id',
'job_type_id' => 'nullable|exists:codebridge.pmis_job_types,id',
'name' => 'sometimes|required|string|max:50',
'phone' => 'nullable|string|max:20',
'birth_date' => 'nullable|string|max:6',