29 lines
846 B
PHP
29 lines
846 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\V1\Equipment;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class StoreInspectionTemplateRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'inspection_cycle' => 'required|string|in:daily,weekly,monthly,bimonthly,quarterly,semiannual',
|
||
|
|
'item_no' => 'required|string|max:20',
|
||
|
|
'check_point' => 'required|string|max:100',
|
||
|
|
'check_item' => 'required|string|max:200',
|
||
|
|
'check_timing' => 'nullable|string|max:50',
|
||
|
|
'check_frequency' => 'nullable|string|max:50',
|
||
|
|
'check_method' => 'nullable|string|max:200',
|
||
|
|
'sort_order' => 'nullable|integer|min:0',
|
||
|
|
'is_active' => 'nullable|boolean',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|