<?php

namespace App\Http\Requests\Front;

use App\Rules\ReCaptcha;
use Illuminate\Foundation\Http\FormRequest;

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



    public function rules(): array
    {
        return [
            'nombre' => 'required|string|max:200',
            'apellido' => 'required|string|max:200',
            'telefono' => 'required',
            'correo' => 'required|email',
            'token' => [
                'required', 'string',
                new ReCaptcha
            ],
            'mensaje' => 'required|string|max:1000'
        ];
    }
}
