Add ContactAdmin mailable

This commit is contained in:
Daniel Supernault 2019-06-06 21:13:19 -06:00
parent 1fdfa7ac3d
commit 12cb57dbd0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

37
app/Mail/ContactAdmin.php Normal file
View file

@ -0,0 +1,37 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Contact;
class ContactAdmin extends Mailable
{
use Queueable, SerializesModels;
protected $contact;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(Contact $contact)
{
$this->contact = $contact;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$contact = $this->contact;
return $this->markdown('emails.contact.admin')->with(compact('contact'));
}
}