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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,34 +122,34 @@ class NewsWasPublished extends Notification
122
122
}
123
123
}
124
124
```
125
-
You can also modify who the notification(SMS) is sent from, this will overide the AT_FROM= in your .env
125
+
You can also modify who the notification(SMS) is sent from, this will override the AT_FROM= in your .env
126
126
**Please only do this if you have a VALID sender_ID**
127
127
128
128
``` php
129
129
return (new AfricasTalkingMessage())
130
-
->content('Your SMS message content')
130
+
->content("Your SMS message content")
131
131
->from("set any sender id/name here");
132
132
```
133
133
134
134
You can also modify who the notification(SMS) is sent to (the recipient)
135
135
136
136
``` php
137
137
return (new AfricasTalkingMessage())
138
-
->content('Your SMS message content')
139
-
->to("put the recipient phonenumber here"); //eg ->to(1111111111)
138
+
->content("Your SMS message content")
139
+
->to("put the recipient phone number here"); //eg ->to(1111111111)
140
140
```
141
141
It's important to know the Order in which the recipient phone number the notification(SMS) will be sent to will be used
142
142
143
143
1) If you have defined the routeNotificationForAfricasTalking() method on the Notifiable class (User.php in this case) and returned a valid phone number, then that will be used.
144
144
145
145
2) if you did not define routeNotificationForAfricasTalking() method on the Notifiable class (User.php in this case), then the phone_number attribute of the User will be used ($user->phone_number)
146
146
147
-
3) Lastly if the recipient phone number is set using ->to(1111111), this will overide the phone number provided in either 1 or 2.
147
+
3) Lastly if the recipient phone number is set using ->to(1111111), this will override the phone number provided in either 1 or 2.
148
148
149
149
``` php
150
150
return (new AfricasTalkingMessage())
151
-
->content('Your SMS message content')
152
-
->to("put the recipient phonenumber here"); //eg ->to(11111111)
151
+
->content("Your SMS message content")
152
+
->to("put the recipient phone number here"); //eg ->to(11111111)
0 commit comments