birzha-legalizasia/app/Mail/ApplicationRefined.php

34 lines
651 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ApplicationRefined extends Mailable
{
use Queueable, SerializesModels;
public $name;
public function __construct($name)
{
$this->name = $name;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$user['name'] = $this->name;
return $this->subject('Your application has been refined!')
->view('emails.notifications.application_refined', ['user' => $user]);
}
}