fix: [pmis] validation exists 규칙에 codebridge connection 지정
- exists:pmis_* → exists:codebridge.pmis_* 변경 (4개 컨트롤러, 10곳) - 원인: 모델은 codebridge connection이지만 validation은 기본 connection(sam) 사용
This commit is contained in:
@@ -128,7 +128,7 @@ public function saveReviewers(Request $request, int $id): JsonResponse
|
||||
public function workerStore(Request $request): JsonResponse
|
||||
{
|
||||
$v = $request->validate([
|
||||
'report_id' => 'required|integer|exists:pmis_daily_work_reports,id',
|
||||
'report_id' => 'required|integer|exists:codebridge.pmis_daily_work_reports,id',
|
||||
'work_type' => 'required|string|max:200',
|
||||
'job_type' => 'required|string|max:200',
|
||||
'prev_cumulative' => 'nullable|integer|min:0',
|
||||
@@ -167,7 +167,7 @@ public function workerDestroy(int $id): JsonResponse
|
||||
public function equipmentStore(Request $request): JsonResponse
|
||||
{
|
||||
$v = $request->validate([
|
||||
'report_id' => 'required|integer|exists:pmis_daily_work_reports,id',
|
||||
'report_id' => 'required|integer|exists:codebridge.pmis_daily_work_reports,id',
|
||||
'equipment_name' => 'required|string|max:200',
|
||||
'specification' => 'nullable|string|max:300',
|
||||
'prev_cumulative' => 'nullable|integer|min:0',
|
||||
@@ -207,7 +207,7 @@ public function equipmentDestroy(int $id): JsonResponse
|
||||
public function materialStore(Request $request): JsonResponse
|
||||
{
|
||||
$v = $request->validate([
|
||||
'report_id' => 'required|integer|exists:pmis_daily_work_reports,id',
|
||||
'report_id' => 'required|integer|exists:codebridge.pmis_daily_work_reports,id',
|
||||
'material_name' => 'required|string|max:200',
|
||||
'specification' => 'nullable|string|max:300',
|
||||
'unit' => 'nullable|string|max:50',
|
||||
@@ -248,7 +248,7 @@ public function materialDestroy(int $id): JsonResponse
|
||||
public function volumeStore(Request $request): JsonResponse
|
||||
{
|
||||
$v = $request->validate([
|
||||
'report_id' => 'required|integer|exists:pmis_daily_work_reports,id',
|
||||
'report_id' => 'required|integer|exists:codebridge.pmis_daily_work_reports,id',
|
||||
'work_type' => 'required|string|max:200',
|
||||
'sub_work_type' => 'nullable|string|max:200',
|
||||
'unit' => 'nullable|string|max:50',
|
||||
@@ -289,7 +289,7 @@ public function volumeDestroy(int $id): JsonResponse
|
||||
public function photoStore(Request $request): JsonResponse
|
||||
{
|
||||
$v = $request->validate([
|
||||
'report_id' => 'required|integer|exists:pmis_daily_work_reports,id',
|
||||
'report_id' => 'required|integer|exists:codebridge.pmis_daily_work_reports,id',
|
||||
'location' => 'nullable|string|max:200',
|
||||
'content' => 'nullable|string|max:500',
|
||||
'photo' => 'nullable|image|max:10240',
|
||||
|
||||
Reference in New Issue
Block a user