2021-03-19 12:52:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class PasswordReset extends Mailable implements ShouldQueue
|
|
|
|
|
{
|
2023-08-21 15:24:32 +02:00
|
|
|
use Queueable;
|
|
|
|
|
use SerializesModels;
|
2021-03-19 12:52:00 +01:00
|
|
|
|
|
|
|
|
protected $user, $settings;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($user)
|
|
|
|
|
{
|
|
|
|
|
$this->user = $user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Build the message.
|
|
|
|
|
*
|
|
|
|
|
* @return $this
|
|
|
|
|
*/
|
|
|
|
|
public function build()
|
|
|
|
|
{
|
2023-08-21 15:24:32 +02:00
|
|
|
return $this->subject('Changement de votre mot de passe')->view('fo.mail.password-email')->with(['user' => $this->user]);
|
2021-03-19 12:52:00 +01:00
|
|
|
}
|
|
|
|
|
}
|