<?php

namespace App\Http\Requests;


use Illuminate\Validation\Rule;

class EmployeeRegistrationRequest extends BaseRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            "first_name" => "required|string",
            "last_name" => "required|string",
            'email' => ['required', 'email',Rule::unique('users', 'email')->withoutTrashed()],
            'password' => 'required',
            'userRole' => 'required'
        ];
    }
}
