TaskA/app/Mail/FirstMail.php

39 lines
666 B
PHP
Raw Normal View History

2024-06-16 08:11:32 +00:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class FirstMail extends Mailable
{
use Queueable, SerializesModels;
public $name;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($name)
{
$this->name = $name;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.firstmail')
->subject('Welcome to Our Platform')
->with([
'name' => $this->name,
]);
}
}