Send to a temporary User instance with notify in Laravel


Send notification even if you don't have user object with email

You can easily create a temporary User instance with the email address.

(new User)->forceFill([ 'name' => 'Their name', 'email' => 'email@example.com', ])->notify(new MailMessage);