app/NotificationTemplates.php
// function to update message template details
function to update message template details
function to update message template details
public function updateMessageTemplate($template_id, $messageChannelRef, $messageStatusCode, $messageTemplate) {
    	$result = DB::table('message_templates')
		            ->where('template_id', $template_id)
		            ->update(['channel_ref_id' => $messageChannelRef, 'status_code_id' => $messageStatusCode, 'template' => $messageTemplate]);
    	return $result;
    }
public function updateMessageTemplate ( $ template_id , $ messageChannelRef , $ messageStatusCode , $ messageTemplate ) { $ result = DB :: table ( 'message_templates' ) -> where ( 'template_id' , $ template_id ) -> update ( [ 'channel_ref_id' => $ messageChannelRef , 'status_code_id' => $ messageStatusCode , 'template' => $ messageTemplate ] ) ; return $ result ; }
function to update message template details
function to update message template details