<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class RegistrationRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'fullname' => 'required',
            'name' => 'required',
            'patronymic' => 'required',
            'numberphone' => 'required',
            'email' => 'required|unique:users,email',
            'password' => 'required',
        ];
    }
}
