27 lines
739 B
PHP
27 lines
739 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\V1\Equipment;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class UpdateInspectionNotesRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'equipment_id' => 'required|integer|exists:equipments,id',
|
||
|
|
'year_month' => 'required|string',
|
||
|
|
'cycle' => 'nullable|string|in:daily,weekly,monthly,bimonthly,quarterly,semiannual',
|
||
|
|
'overall_judgment' => 'nullable|string|in:OK,NG',
|
||
|
|
'inspector_id' => 'nullable|integer|exists:users,id',
|
||
|
|
'repair_note' => 'nullable|string',
|
||
|
|
'issue_note' => 'nullable|string',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|