From ad19182e65e794085a4a1a1dd56d1c93d99b96c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20J=C3=B6nsson?= Date: Tue, 22 Aug 2023 15:25:50 +0200 Subject: [PATCH 1/2] Update readme - Change from dryrun() to dry() - Add more info how to dry() description - Update simple notification example --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c5749a..3f25d60 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ You will find your username and password at https://46elks.se/account To use this channel simply create a notification that has the following content: ``` + use NotificationChannels\FortySixElks\FortySixElksChannel; + use NotificationChannels\FortySixElks\FortySixElksSMS; public function via($notifiable) { @@ -77,7 +79,9 @@ To use this channel simply create a notification that has the following content: ->line('Testsms') ->line('Olle') ->to('+46762216234') - ->from('Emil'); + ->from('Emil') + // -dry() + ->send(); } ``` ### Available mediums @@ -94,8 +98,9 @@ The FortySixElksSMS have the following methods, all chainable. ``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. -``dryrun()`` Enable when you want to verify your API request without actually sending an SMS to a mobile phone. - No SMS message will be sent when this is enabled. +``dry()`` Enable when you want to verify your API request without actually sending an SMS to a mobile phone. + No SMS message will be sent when this is enabled. To be able inspect a dry() request you need to + send your message to +4670000000 then you can inspect it at [https://46elks.com/logs](https://46elks.com/logs) ``whendelivered('http://localhost')`` This webhook URL will receive a POST request every time the delivery status changes. From 7373b88cab6908112045b7a859e362ee56378c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20J=C3=B6nsson?= Date: Wed, 23 Aug 2023 09:48:54 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f25d60..826d752 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,7 @@ To use this channel simply create a notification that has the following content: ->line('Olle') ->to('+46762216234') ->from('Emil') - // -dry() - ->send(); + // -dry() } ``` ### Available mediums