Skip to content

Commit 8bb4701

Browse files
authored
Update TextlocalChannel.php
1 parent 203efc2 commit 8bb4701

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/TextlocalChannel.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@
55
use Illuminate\Notifications\Notification;
66
use NotificationChannels\Textlocal\Exceptions\CouldNotSendNotification;
77

8+
/**
9+
* Textlocal channel class which is used to interact with core
10+
* textlocal sdk and faciliate to send sms via
11+
* laravel notification system
12+
*/
813
class TextlocalChannel
914
{
1015
private $client;
1116
private $sender;
1217

18+
/**
19+
* creates a textlocal channel object by using the configs
20+
*
21+
* @param Textlocal $client
22+
*/
1323
public function __construct(Textlocal $client)
1424
{
1525
$this->client = $client;
@@ -56,7 +66,8 @@ public function send($notifiable, Notification $notification)
5666
}
5767

5868
try {
59-
$response = $this->client->setUnicodeMode($unicode)
69+
$response = $this->client
70+
->setUnicodeMode($unicode)
6071
->sendSms($numbers, $message, $this->sender);
6172

6273
return $response;

0 commit comments

Comments
 (0)