<?php

namespace App\Http\Requests\Front;

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

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



    public function rules(): array
    {
        return [
            'nombre' => 'required|string|max:200',
            'reason' => 'required|string|max:200',
            'ruc' => 'required',
            'companyphone' => 'required',
            'market' => 'required',
            'contact' => 'required',
            'cargo' => 'required',
            'contactphone' => 'required',
            'token' => [
                'required', 'string',
                new ReCaptcha
            ],
            'product' => 'required'
        ];
    }
}