mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
38 lines
698 B
PHP
38 lines
698 B
PHP
|
<?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'));
|
||
|
}
|
||
|
}
|