mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 00:02:05 -04:00
36 lines
715 B
PHP
36 lines
715 B
PHP
<?php
|
|
|
|
namespace Modules\GeneralSetting\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MailManager extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
public $array;
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($array)
|
|
{
|
|
$this->array = $array;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->view($this->array['view'])
|
|
->from($this->array['from'])
|
|
->subject($this->array['subject']);
|
|
}
|
|
}
|