Skip to content

Commit

Permalink
Update SmsmisrChannel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahGhanem authored Mar 27, 2020
1 parent 53ff5a6 commit 99c9de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SmsmisrChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function send($notifiable, Notification $notification): bool
$message = $notification->toSmsmisr($notifiable);

try {
$response = $this->client->send($message->message, $message->to, $message->from);
$response = $this->client->send($message->message, $message->to, $message->sender);

if ($response->getBody()->getContents()['Status']['Code'] == 2) {
if ($response['Code'] == 1901) {
return true;
}
} catch (\Exception $e) {
Expand Down

0 comments on commit 99c9de0

Please sign in to comment.