Skip to content

Commit 8273965

Browse files
committed
Update README.md
Update README.md
1 parent f645e05 commit 8273965

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
This package allows to send SMS using Textlocal API using laravel notifications
1+
This package allows to send SMS using Textlocal API using laravel notifications channel textlocal sms
22

33
Supports Laravel 5.5 to 9.x
44

5-
# Found any bugs or improvement open an issue or send me a PR
6-
75
[![Latest Stable Version](https://poser.pugx.org/msonowal/laravel-notification-channel-textlocal/v/stable)](https://packagist.org/packages/msonowal/laravel-notification-channel-textlocal)
86
[![License](https://poser.pugx.org/msonowal/laravel-notification-channel-textlocal/license)](https://packagist.org/packages/msonowal/laravel-notification-channel-textlocal)
97
[![Total Downloads](https://poser.pugx.org/msonowal/laravel-notification-channel-textlocal/downloads)](https://packagist.org/packages/msonowal/laravel-notification-channel-textlocal)
@@ -35,12 +33,15 @@ Create an account in textlocal then create an API key or hash(password).
3533
### Setting up the textlocal service
3634

3735
default config `textlocal.php` update where desired
36+
37+
Important Either specify a Key OR a Hash - don't enter both!
38+
3839
```
3940
return [
4041
'username' => env('TEXTLOCAL_USERNAME'),
4142
'password' => env('TEXTLOCAL_PASSWORD'),
42-
'hash' => env('TEXTLOCAL_HASH'),
43-
'api_key' => env('TEXTLOCAL_API_KEY'),
43+
'hash' => env('TEXTLOCAL_HASH'), //optional if api_key is set
44+
'api_key' => env('TEXTLOCAL_API_KEY'), //optional if hash is set
4445
'sender' => env('TEXTLOCAL_SENDER'),
4546
'request_urls' => [
4647
'IN' => 'https://api.textlocal.in/',
@@ -102,6 +103,12 @@ public function routeNotificationForTextlocal(): array
102103
}
103104
```
104105

106+
Annoynmous Notifable when say mobile no is not added to a notifiable model you can directly send to mobile no by using that
107+
108+
```php
109+
Notification::route('Textlocal', $mobileNo')->notify(new VerifyMobileNotification($otp));
110+
```
111+
105112
### Available Message methods
106113

107114
And if you want to have a specific sender based on Notification, e.g. like you are sending promotional notification using one and another for transaction then you can just define this method in your notification class which will return your sender id for that notification only
@@ -137,6 +144,8 @@ $ composer test
137144

138145
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
139146

147+
# Found any bugs or improvement open an issue or send me a PR
148+
140149
## Contributing
141150

142151
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

0 commit comments

Comments
 (0)