You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,20 @@ Create an account in textlocal then create an API key or hash(password).
34
34
35
35
### Setting up the textlocal service
36
36
37
-
put the followings and to your config/services
37
+
default textlocal config update as desired
38
38
```
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
+
];
48
51
```
49
52
### Configuring .env
50
53
```
@@ -64,7 +67,7 @@ Currently, only textlocal of two country is supported IN(India) and UK(United Ki
64
67
65
68
## Usage
66
69
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.
0 commit comments