<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ResetUserTwoFactorRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true; // Additional authorization in controller or policy
    }

    public function rules(): array
    {
        return [
            'user_id' => ['required', 'integer', 'exists:portal_users,id'],
        ];
    }

    public function messages(): array
    {
        return [
            'user_id.exists' => 'The specified user does not exist.',
        ];
    }
}
