mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add ContactAdmin mailable
This commit is contained in:
parent
1fdfa7ac3d
commit
12cb57dbd0
1 changed files with 37 additions and 0 deletions
37
app/Mail/ContactAdmin.php
Normal file
37
app/Mail/ContactAdmin.php
Normal 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'));
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue