Files
cheerstothe_season_2.0/app/Mail/AccountRegister.php
sayliraut 8fbb3d76c6 changes
2024-08-05 18:42:46 +05:30

66 lines
1.3 KiB
PHP

<?php
namespace App\Mail;
use App\Models\IamPrincipal;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class AccountRegister extends Mailable
{
use Queueable, SerializesModels;
public $restaurantuser;
public $restaurantName;
/**
* Create a new message instance.
*
* @param IamPrincipal $restaurantuser
* @param string $restaurantName
* @return void
*/
public function __construct(IamPrincipal $restaurantuser, $restaurantName)
{
$this->restaurantuser = $restaurantuser;
$this->restaurantName = $restaurantName;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('Admin.pages.mail.account_register');
}
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
return new Envelope(
subject: 'New Account Registration Details',
);
}
/**
* Get the attachments for the message.
*
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
*/
public function attachments(): array
{
return [];
}
}