Laravel 5.3 Notification - only use email addresses

I have an input field in my external email application and I want to send a notification to this email.

The problem is that this email may be outside of my application, so I cannot use $ user-> notify ().

Is there a way to send a notification using only an email address

+7
laravel notifications
source share
1 answer

You can easily create a temporary user instance with an email address.

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

All Articles