관리-도구
편집 파일: ContactUs.php
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class ContactUs 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.contact') ->with('content',$this->content); } }