2025-11-20 16:55:57 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\ItemMaster;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
|
|
class ItemSectionStoreRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
public function authorize(): bool
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function rules(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2025-11-27 10:28:51 +09:00
|
|
|
'group_id' => 'nullable|integer|min:1', // 계층번호
|
2025-11-20 16:55:57 +09:00
|
|
|
'title' => 'required|string|max:255',
|
|
|
|
|
'type' => 'required|in:fields,bom',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|