check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'lastname' => 'required|string|max:255', 'firstname' => 'required|string|max:255', 'email' => 'required|string|email|max:255|unique:users', 'password' => 'required|string|min:8', 'role' => new Enum(UserRoleEnum::class) ]; } }