username || ! $value) { $fail(config()->string('module.otp-verification.no_username_or_code_message')); return; } OtpVerification::query() ->where('username', $this->username) ->where('code', $value) ->firstOr(fn () => $fail(config()->string('module.otp-verification.validation_message'))); } }