journal-intime/app/Mail/ReminderMail.php

38 lines
681 B
PHP
Raw Normal View History

<?php
namespace App\Mail;
use App\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class ReminderMail extends Mailable
{
use Queueable, SerializesModels;
/** @var \App\User */
private $user;
/**
* Create a new message instance.
*
* @param \App\User $user
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.reminder', ['user' => $this->user]);
}
}