관리-도구
편집 파일: FeedbackMail.php
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class FeedbackMail extends Mailable { use Queueable, SerializesModels; public $mailData; /** * Create a new message instance. * * @param array $mailData * @return void */ public function __construct($mailData) { $this->mailData = array_merge($mailData, ['fd_name' => $mailData['fd_name']]); } /** * Build the message. * * @return $this */ public function build() { return $this->view('mail.feedback') ->subject('Feedback Submission') ->with($this->mailData); } }