<?php

namespace App\Http\Requests\Approval;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'comment' => 'required|string|max:1000',
        ];
    }

    public function messages(): array
    {
        return [
            'comment.required' => __('error.approval.reject_comment_required'),
        ];
    }
}
