ldc-com-app-bo/app/Mail/SendFlyer.php

41 lines
731 B
PHP
Raw Permalink Normal View History

2023-07-13 08:34:54 +00:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SendFlyer extends Mailable
{
use Queueable;
use SerializesModels;
/** @var object */
public $data;
/**
* Create a new message instance.
*
* @param mixed $data
* @return void
*/
2023-08-31 12:50:58 +02:00
public function __construct($data)
2023-07-13 08:34:54 +00:00
{
$this->data = (object)$data;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this
->from($this->data->from, $this->data->fromName)
->subject($this->data->subject)
->markdown('bo.mails.sendflyer');
}
}