41 lines
823 B
PHP
41 lines
823 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Mail;
|
||
|
|
|
||
|
|
use App\Models\Employee;
|
||
|
|
use Illuminate\Bus\Queueable;
|
||
|
|
use Illuminate\Mail\Mailable;
|
||
|
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
|
||
|
|
class EmployeeConfirmMail extends Mailable
|
||
|
|
{
|
||
|
|
use Queueable;
|
||
|
|
use SerializesModels;
|
||
|
|
|
||
|
|
protected $employee;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a new message instance.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function __construct(Employee $employee)
|
||
|
|
{
|
||
|
|
$this->employee = $employee;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Build the message.
|
||
|
|
*
|
||
|
|
* @return $this
|
||
|
|
*/
|
||
|
|
public function build()
|
||
|
|
{
|
||
|
|
return $this
|
||
|
|
->subject(sprintf('%s : Veuillez confirmer votre adresse email', config('app.name')))
|
||
|
|
->view('emails.mail-confirm')
|
||
|
|
->text('emails.mail-confirm-plain')
|
||
|
|
->with('employee', $this->employee);
|
||
|
|
}
|
||
|
|
}
|