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
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,20 +80,22 @@ class AccountApproved extends Notification
80
80
81
81
return SnsMessage::create()
82
82
->body("Your {$notifiable->service} account was approved!")
83
-
->transactional();
83
+
->transactional()
84
+
->sender("MyStore");
84
85
85
86
// or
86
87
87
88
return SnsMessage::create([
88
89
'body' => "Your {$notifiable->service} account was approved!",
89
-
'transactional' => true
90
+
'transactional' => true,
91
+
'sender' => "MyStore"
90
92
]);
91
93
92
94
// or
93
95
94
96
return SnsMessage::create([
95
97
'body' => "Your {$notifiable->service} account was approved!"
96
-
])->promotional();
98
+
])->promotional()->sender("MyStore");
97
99
}
98
100
}
99
101
```
@@ -116,6 +118,7 @@ public function routeNotificationForSns()
116
118
-`body('')`: Accepts a string value for the notification body. Messages with more than 140 characters will be split into multiple messages by SNS without breaking any words.
117
119
-`promotional(bool)`: Sets the SMS attribute as the promotional delivery type (default). Optimizes the delivery for lower costs.
118
120
-`transactional(bool)`: Sets the SMS attribute as the transactional delivery type. Optimizes the delivery to achieve the highest reliability (it also costs more).
121
+
-`sender(string)`: Sets the SMS sender id. It can be up to 11 characters with no spaces.
119
122
120
123
More information about the SMS Attributes can be found on the [AWS SNS Docs](https://docs.aws.amazon.com/pt_br/sdk-for-php/v3/developer-guide/sns-examples-sending-sms.html#get-sms-attributes).
121
124
It's important to know that the attributes set on the message will override the
0 commit comments