Skip to content

Commit 56ae14c

Browse files
committed
Added additional data to to Sent and Failure Event
1 parent bd3e125 commit 56ae14c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Channels/WebSmsChannel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,14 @@ public function send($notifiable, Notification $notification)
8484
$response = $client->send($message, $this->getSmsCount($message->getMessageContent()));
8585

8686
event(new NotificationSent($notifiable, $notification, $this->channelName, [
87+
'to' => $to,
88+
'message' => $message,
8789
'response' => $response
8890
]));
8991
} catch (\Exception $e) {
9092
event(new NotificationFailed($notifiable, $notification, $this->channelName, [
93+
'to' => $to,
94+
'message' => $message,
9195
'exception' => $e
9296
]));
9397
}

0 commit comments

Comments
 (0)