first(); throw_if(! $user, new UserNotFoundException('User not found')); $otp = $this->otpService->generate($user); $this->mailAction->execute($user->email, $otp); if ($user?->type->phone !== null) { try { $this->twilioService->sendSms($user->type->phone, "Your OTP is $otp"); } catch (TwilioException $e) { \Log::error('SMS send failed', [$e->getMessage()]); } } } }