Skip to content

Commit ae1cc57

Browse files
authored
Update README.md
1 parent b012e66 commit ae1cc57

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,21 @@ class ExampleNotification extends Notification
6666
public function toSendGrid($notifiable)
6767
{
6868
return (new SendGridMessage('Your SendGrid template ID'))
69+
/**
70+
* optionally set the from address.
71+
* by default this comes from config/mail.from
72+
* ->from('no-reply@test.com', 'App name')
73+
*/
74+
75+
/**
76+
* optionally set the recipient.
77+
* by default it's $notifiable->email:
78+
* ->to('hello@example.com', 'Mr. Smith')
79+
*/
80+
6981
->payload([
70-
"template_var_1" => "template_value_1"
71-
]);
82+
"template_var_1" => "template_value_1"
83+
]);
7284
}
7385
}
7486

0 commit comments

Comments
 (0)