<?php

namespace App\Modules\Admin\Tenancy\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StoreBillingFailureRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->isAdmin() ?? false;
    }

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