Last active
January 12, 2024 11:11
-
-
Save wijourdil/bc2bee92788e453d4fbb38719242c83d to your computer and use it in GitHub Desktop.
Send a test mail / notification in Laravel from Tinker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*/ | |
Mail::raw('hello world', function($message) { $message->to('myawesomeemail@domain.com')->subject('Testing mails'); }); | |
/** | |
* Notification | |
*/ | |
Notification::route('mail', 'test@example.com')->notify(new MyNotification()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment