Skip to content

Commit 8a6196e

Browse files
authored
Update README.md
1 parent 610ba82 commit 8a6196e

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,20 @@ Create an account in textlocal then create an API key or hash(password).
3434

3535
### Setting up the textlocal service
3636

37-
put the followings and to your config/services
37+
default textlocal config update as desired
3838
```
39-
'sms' => [
40-
'textlocal' => [
41-
'username' => env('TEXTLOCAL_USERNAME'),
42-
'password' => env('TEXTLOCAL_PASSWORD'),
43-
'hash' => env('TEXTLOCAL_HASH'),
44-
'api_key' => env('TEXTLOCAL_API_KEY'),
45-
'sender' => env('TEXTLOCAL_SENDER'),
46-
]
47-
]
39+
return [
40+
'username' => env('TEXTLOCAL_USERNAME'),
41+
'password' => env('TEXTLOCAL_PASSWORD'),
42+
'hash' => env('TEXTLOCAL_HASH'),
43+
'api_key' => env('TEXTLOCAL_API_KEY'),
44+
'sender' => env('TEXTLOCAL_SENDER'),
45+
'request_urls' => [
46+
'IN' => 'https://api.textlocal.in/',
47+
'UK' => 'https://api.txtlocal.com/'
48+
],
49+
'country' => env('TEXTLOCAL_COUNTRY', 'IN'),
50+
];
4851
```
4952
### Configuring .env
5053
```
@@ -64,7 +67,7 @@ Currently, only textlocal of two country is supported IN(India) and UK(United Ki
6467

6568
## Usage
6669

67-
Implement this method `routeNotificationForSms()` in your notifiable class/model which will return array of mobile numbers. Please make sure the mobile number contains the dial code as well (e.g +91 for India). And lastly implement `toSms()` method in the notification class which will return the (string) sms or template that is defined in textlocal account that needs to be send.
70+
Implement this method `routeNotificationForTextlocal()` in your notifiable class/model which will return array of mobile numbers. Please make sure the mobile number contains the dial code as well (e.g +91 for India). And lastly implement `toSms()` method in the notification class which will return the (string) sms or template that is defined in textlocal account that needs to be send.
6871

6972
### Available Message methods
7073

0 commit comments

Comments
 (0)