Last active
August 8, 2025 09:38
-
-
Save claide/bab00456a141b606abc3e78a9ddfd86d to your computer and use it in GitHub Desktop.
Test email sending on Laravel app using tinker
This file contains hidden or 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 artisan tinker | |
Mail::raw('Test email', function ($message) { | |
$mesage->to('[email protected]')->subject('Test Email'); | |
}); |
This file contains hidden or 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 artisan tinker | |
Mail::send('emails.valentines', ['user' => App\Models\Dating\User::first(), 'site' => App\Models\Dating\Site::first()], function($message) { $message->to('[email protected]')->subject('Valentine\'s Day Special 💕'); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment