<?php

namespace App\Master\Http\Requests;

use JetBrains\PhpStorm\ArrayShape;
use Mtc\MercuryDataModels\User;

class StoreAllUserRequest extends SiteRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    #[ArrayShape(['name' => 'string[]', 'email' => 'string[]'])]
    #[\Override] public function rules()
    {
        return [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'email', 'unique:' . User::class . ',email'],
        ];
    }
}
