- Controller 3개, Service 3개, FormRequest 6개 생성 - Routes 등록 (BOM 항목, 섹션 템플릿, 마스터 필드) - Service-First, Multi-tenant, Soft Delete - 라우트 테스트 및 Pint 검사 통과 13 files changed, 600+ insertions(+)
28 lines
693 B
PHP
28 lines
693 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ItemMaster;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ItemBomItemStoreRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'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',
|
|
];
|
|
}
|
|
}
|