Skip to content

Commit

Permalink
remove events since they are now fired in laravel core
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 16, 2016
1 parent 2a43796 commit 5cdeb5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
24 changes: 0 additions & 24 deletions src/Events/MessageWasSent.php

This file was deleted.

24 changes: 0 additions & 24 deletions src/Events/SendingMessage.php

This file was deleted.

8 changes: 0 additions & 8 deletions src/WebhookChannel.php
Expand Up @@ -36,12 +36,6 @@ public function send($notifiable, Notification $notification)
return;
}

$shouldSendMessage = event(new SendingMessage($notifiable, $notification), [], true) !== false;

if (! $shouldSendMessage) {
return;
}

$webhookData = $notification->toWebhook($notifiable)->toArray();

$response = $this->client->post($url, [
Expand All @@ -53,7 +47,5 @@ public function send($notifiable, Notification $notification)
if ($response->getStatusCode() !== 200) {
throw CouldNotSendNotification::serviceRespondedWithAnError($response);
}

event(new MessageWasSent($notifiable, $notification));
}
}

0 comments on commit 5cdeb5a

Please sign in to comment.