Skip to content

Commit ad19182

Browse files
committed
Update readme
- Change from dryrun() to dry() - Add more info how to dry() description - Update simple notification example
1 parent b19a405 commit ad19182

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ You will find your username and password at https://46elks.se/account
6464

6565
To use this channel simply create a notification that has the following content:
6666
```
67+
use NotificationChannels\FortySixElks\FortySixElksChannel;
68+
use NotificationChannels\FortySixElks\FortySixElksSMS;
6769
6870
public function via($notifiable)
6971
{
@@ -77,7 +79,9 @@ To use this channel simply create a notification that has the following content:
7779
->line('Testsms')
7880
->line('Olle')
7981
->to('+46762216234')
80-
->from('Emil');
82+
->from('Emil')
83+
// -dry()
84+
->send();
8185
}
8286
```
8387
### Available mediums
@@ -94,8 +98,9 @@ The FortySixElksSMS have the following methods, all chainable.
9498

9599
``flash()`` Will set the message type to flash. Will not endup in sms inbox. See [This tweet](https://twitter.com/46elks/status/583183559420178432) to find out how it looks on an iphone.
96100

97-
``dryrun()`` Enable when you want to verify your API request without actually sending an SMS to a mobile phone.
98-
No SMS message will be sent when this is enabled.
101+
``dry()`` Enable when you want to verify your API request without actually sending an SMS to a mobile phone.
102+
No SMS message will be sent when this is enabled. To be able inspect a dry() request you need to
103+
send your message to +4670000000 then you can inspect it at [https://46elks.com/logs](https://46elks.com/logs)
99104

100105
``whendelivered('http://localhost')`` This webhook URL will receive a POST request every time the delivery status changes.
101106

0 commit comments

Comments
 (0)