$data * * @throws \Throwable */ public function execute(array $data): void { ['user' => $user,'otp' => $otp] = $data; $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()]); } } } }