LinkStack/app/Mail/ReportSubmissionMail.php

28 lines
615 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class ReportSubmissionMail extends Mailable
{
use Queueable, SerializesModels;
public $formData;
public function __construct($formData)
{
$this->formData = $formData;
}
public function build()
{
return $this->view('layouts.send-report')
->subject(__('messages.report_mail_admin_subject'));
}
}