laravel mail from name code example
Example 1: laravel mail create
php artisan make:mail OrderShipped --markdown=emails.orders.shipped
Example 2: laravel mail to specific email with name
$to = [
[
'email' => $email,
'name' => $name,
]
];
\Mail::to($to)->send(new \App\Mail\Hello);
Example 3: laravel mailable from
return (new Mail)
->to('[email protected]')
->from('[email protected]');