2025-11-20 17:07:40 +09:00
|
|
|
<?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 [
|
2025-11-26 18:08:03 +09:00
|
|
|
'page_id' => 'nullable|integer|exists:item_pages,id',
|
2025-11-20 17:07:40 +09:00
|
|
|
'title' => 'required|string|max:255',
|
|
|
|
|
'type' => 'required|in:fields,bom',
|
|
|
|
|
'description' => 'nullable|string',
|
|
|
|
|
'is_default' => 'nullable|boolean',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|