- feat: QMS 감사 체크리스트 (AuditChecklist CRUD, 카테고리/항목/표준문서 모델, 마이그레이션) - feat: QMS LOT 감사 (QmsLotAudit 컨트롤러/서비스, 확인/문서상세 FormRequest) - fix: CalendarService, MemberService 수정 - chore: QualityDocumentLocation options 컬럼 추가, tenant_id 마이그레이션, 품질 더미데이터 시더
35 lines
705 B
PHP
35 lines
705 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Qms;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class QmsLotAuditDocumentDetailRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
protected function prepareForValidation(): void
|
|
{
|
|
$this->merge([
|
|
'type' => $this->route('type'),
|
|
]);
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'type' => 'required|string|in:import,order,log,report,confirmation,shipping,product,quality',
|
|
];
|
|
}
|
|
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'type.in' => __('validation.in', ['attribute' => '서류 타입']),
|
|
];
|
|
}
|
|
}
|