54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Customer;
|
|
use App\Models\Settings;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class PasswordReset extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
use SerializesModels;
|
|
|
|
/**
|
|
* Customer
|
|
*
|
|
* @var Customer
|
|
*/
|
|
protected $customer;
|
|
|
|
/**
|
|
* Settings
|
|
*
|
|
* @var Settings
|
|
*/
|
|
protected $settings;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param Customer $customer
|
|
* @param Settings $settings
|
|
*/
|
|
public function __construct(Customer $customer, Settings $settings)
|
|
{
|
|
$this->customer = $customer;
|
|
$this->settings = $settings;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->subject('Changement de votre mot de passe')
|
|
->view('front.basic.password-email')
|
|
->with(['customer' => $this->customer, 'settings' => $this->settings]);
|
|
}
|
|
}
|