post('/api/transaction/online/log', [ 'bill_id' => $bill_id, 'payload' => json_encode($request), 'response' => json_encode($response), 'status' => json_encode($status), ]); } catch (\Exception $e) { // Log the exception itself Log::error('Failed to log activity: ' . $e->getMessage()); } } }