<?php

namespace App\Http\Requests\Qms;

use Illuminate\Foundation\Http\FormRequest;

class QmsLotAuditConfirmRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'confirmed' => 'required|boolean',
        ];
    }

    public function messages(): array
    {
        return [
            'confirmed.required' => __('validation.required', ['attribute' => '확인 상태']),
            'confirmed.boolean' => __('validation.boolean', ['attribute' => '확인 상태']),
        ];
    }
}
