Update WhatsappHelper.php

This commit is contained in:
Jagad R R
2025-03-03 14:22:02 +07:00
parent b3ce444c97
commit d016ca4f6a
-5
View File
@@ -233,8 +233,6 @@ class WhatsappHelper
];
}
dd(env('WABLAS_HOST'), env('WABLAS_TOKEN'), $data);
try {
// Send the request to the WABLAS API
$response = $client->post(env('WABLAS_HOST') . '/api/v2/send-message', [
@@ -248,11 +246,8 @@ class WhatsappHelper
'verify' => false,
]);
dd($response->getBody()->getContents());
return $response->getBody()->getContents();
} catch (\Exception $e) {
dd($e->getMessage());
AuditTrailHelper::AddAuditTrail('Error', 'Failed to send WhatsApp message at Form (' . $expense_number . ')');
return null;
}