fix: [pmis] validation exists 규칙에 codebridge connection 지정
- exists:pmis_* → exists:codebridge.pmis_* 변경 (4개 컨트롤러, 10곳) - 원인: 모델은 codebridge connection이지만 validation은 기본 connection(sam) 사용
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user