Skip to content

Commit

Permalink
Merge pull request #2 from Anisi/master
Browse files Browse the repository at this point in the history
added 'notifiable' parameter to the toSMS call
  • Loading branch information
palvaneh authored Mar 23, 2017
2 parents 8395e1c + 7036bec commit 7dde5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KavenegarChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public function send($notifiable, Notification $notification)
{
$sender = config('services.kavenegar.sender');
$receptor = $notifiable->routeNotificationFor('sms');
$message = $notification->toSMS();
$message = $notification->toSMS($notifiable);

$this->api->Send($sender, $receptor, $message);
}

}
}

0 comments on commit 7dde5f1

Please sign in to comment.