Files
monica/app/Mail/InvitationSent.php
T
Régis FreydandGitHub 29197090a7 Restructure where models are stored (#1476)
The idea is to clean the repository a little bit by moving models into their respective folders.
2018-06-14 20:49:12 -04:00

40 lines
802 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use App\Models\Account\Invitation;
use Illuminate\Queue\SerializesModels;
class InvitationSent extends Mailable
{
use Queueable, SerializesModels;
protected $invitation;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(Invitation $invitation)
{
$this->invitation = $invitation;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.invitation.index')
->subject('You are invited to join Monica')
->with([
'invitation' => $this->invitation,
]);
}
}