'required_without:uri|string', 'account' => 'required_without:uri|nullable|string|regex:/^[^:]+$/i', 'icon' => 'nullable|string', 'uri' => 'nullable|string|regex:/^otpauth:\/\/[h,t]otp\//i', 'otpType' => 'required_without:uri|in:totp,hotp', 'secret' => 'required_without:uri|string', 'digits' => 'nullable|integer|between:6,10', 'algorithm' => 'nullable|in:sha1,sha256,sha512,md5', 'period' => 'nullable|integer|min:1', 'counter' => 'nullable|integer|min:0', ]; } }