Files
sam-api/app/Http/Requests/ItemMaster/SectionTemplateStoreRequest.php
hskwon a1604b6189 refactor: 섹션 관리를 entity_relationships 참조 방식으로 전환
- SectionTemplateService: 독립 섹션 생성, page_id 있으면 링크 연결
- ItemMasterService: init API가 linkedSections 기반으로 조회
- SectionTemplateStoreRequest: page_id nullable로 변경
- Swagger: 스키마 업데이트 (sectionTemplates → sections)
2025-11-26 18:08:03 +09:00

25 lines
558 B
PHP

<?php
namespace App\Http\Requests\ItemMaster;
use Illuminate\Foundation\Http\FormRequest;
class SectionTemplateStoreRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'page_id' => 'nullable|integer|exists:item_pages,id',
'title' => 'required|string|max:255',
'type' => 'required|in:fields,bom',
'description' => 'nullable|string',
'is_default' => 'nullable|boolean',
];
}
}