- CASCADE FK → 독립 엔티티 + entity_relationships 링크 테이블 - 독립 API 10개 추가 (섹션/필드/BOM CRUD, clone, usage) - SectionTemplate 모델 제거 → ItemSection.is_template 통합 - 페이지-섹션, 섹션-필드, 섹션-BOM 링크/언링크 API 14개 추가 - Swagger 문서 업데이트
29 lines
746 B
PHP
29 lines
746 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ItemMaster;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class IndependentBomItemStoreRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'group_id' => 'nullable|integer',
|
|
'item_code' => 'nullable|string|max:100',
|
|
'item_name' => 'required|string|max:255',
|
|
'quantity' => 'nullable|numeric|min:0',
|
|
'unit' => 'nullable|string|max:50',
|
|
'unit_price' => 'nullable|numeric|min:0',
|
|
'total_price' => 'nullable|numeric|min:0',
|
|
'spec' => 'nullable|string',
|
|
'note' => 'nullable|string',
|
|
];
|
|
}
|
|
}
|