Skip to content

Commit 0c32a6f

Browse files
committed
remove events since they are now fired in laravel core
1 parent a0c1211 commit 0c32a6f

File tree

3 files changed

+0
-65
lines changed

3 files changed

+0
-65
lines changed

src/Events/MessageWasSent.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Events/SendingMessage.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/TwilioChannel.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,13 @@ public function send($notifiable, Notification $notification)
4747
throw CouldNotSendNotification::missingFrom();
4848
}
4949

50-
$shouldSendMessage = event(new SendingMessage($notifiable, $notification, $message), [], true) !== false;
51-
52-
if (! $shouldSendMessage) {
53-
return;
54-
}
55-
5650
$response = null;
5751

5852
try {
5953
$response = $this->sendMessage($message, $from, $to);
6054
} catch (Exception $exception) {
6155
throw CouldNotSendNotification::serviceRespondedWithAnException($exception);
6256
}
63-
64-
event(new MessageWasSent($notifiable, $notification, $response));
6557
}
6658

6759
/**

0 commit comments

Comments
 (0)