My application sends an sms message when a user signs up. I'm trying to handle the exception if the number is invalid, and Twilio fails to send it. But when the message fails, it never seems to reach the catch in my try/catch clause.
try {
$message = $twilio->messages
->create(
"$user->phone", // to
array("from" => "$siteNumber", "body" => "$message_text")
);
} catch (TwilioException $e) {
return $e->getMessage();
}
I've also tried the following catch conditions.
} catch (\Services_Twilio_RestException $e) {
return $e->getMessage();
}
catch (RestException $e) {
return redirect()->back()->withFlashSuccess("Failed To Send Text");
}
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I'm trying to show the order total quantity in preview order woocommerce in admin panelI mean this
I have the folowing ProblemI am saving a Carbon or DateTime object in a Variable
I want to connect ZKteco k40 with php on xammp localhost to get attendance data what I'm doing write now