<?php

namespace App\Http\Requests\Document;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'category' => 'required|string|max:50',
            'item_id' => 'required|integer',
        ];
    }

    public function messages(): array
    {
        return [
            'category.required' => __('validation.required', ['attribute' => '문서 분류']),
            'item_id.required' => __('validation.required', ['attribute' => '품목 ID']),
            'item_id.integer' => __('validation.integer', ['attribute' => '품목 ID']),
        ];
    }
}
