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: src/Exceptions/CouldNotSendNotification.php
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ public static function invalidMessageObject($message)
16
16
{
17
17
$className = get_class($message) ?: 'Unknown';
18
18
19
-
returnnewstatic("Notification was not sent. Message object class `{$className}` is invalid. It should be either `".SmsMessage::class.'` or `'.CallMessage::class.'`');
19
+
returnnewstatic(
20
+
"Notification was not sent. Message object class `{$className}` is invalid. It should
21
+
be either `".SmsMessage::class.'` or `'.CallMessage::class.'`');
20
22
}
21
23
22
24
/**
@@ -26,4 +28,15 @@ public static function missingFrom()
26
28
{
27
29
returnnewstatic('Notification was not sent. Missing `from` number.');
28
30
}
31
+
32
+
/**
33
+
* @return static
34
+
*/
35
+
publicstaticfunctioninvalidReceiver()
36
+
{
37
+
returnnewstatic(
38
+
'The notifiable did not have a receiving phone number. Add a routeNotificationForTwilio
39
+
method or a phone_number attribute to your notifiable.'
0 commit comments