- Controller 3개, Service 3개, FormRequest 6개 생성 - Routes 등록 (BOM 항목, 섹션 템플릿, 마스터 필드) - Service-First, Multi-tenant, Soft Delete - 라우트 테스트 및 Pint 검사 통과 13 files changed, 600+ insertions(+)
29 lines
855 B
PHP
29 lines
855 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ItemMaster;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ItemMasterFieldUpdateRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'field_name' => 'sometimes|string|max:255',
|
|
'field_type' => 'sometimes|in:textbox,number,dropdown,checkbox,date,textarea',
|
|
'category' => 'sometimes|nullable|string|max:100',
|
|
'description' => 'sometimes|nullable|string',
|
|
'is_common' => 'sometimes|nullable|boolean',
|
|
'default_value' => 'sometimes|nullable|string',
|
|
'options' => 'sometimes|nullable|array',
|
|
'validation_rules' => 'sometimes|nullable|array',
|
|
'properties' => 'sometimes|nullable|array',
|
|
];
|
|
}
|
|
}
|