<?php

namespace App\Http\Requests\TaxInvoice;

use Illuminate\Foundation\Http\FormRequest;

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

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

    public function attributes(): array
    {
        return [
            'reason' => __('validation.attributes.cancel_reason'),
        ];
    }
}
