관리-도구
편집 파일: GeneralMail.php
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class GeneralMail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return void */ protected $content; public function __construct($content) { $this->content = $content; } /** * Build the message. * * @return $this */ public function build() { return $this->subject($this->content->subject) ->markdown('mail.general_template') ->with('content',$this->content); } }