2020-08-01 09:37:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Webkul\Customer\Notifications;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class CustomerUpdatePassword extends Mailable
|
|
|
|
|
{
|
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
|
/**
|
2020-08-05 03:56:54 +00:00
|
|
|
* The customer instance.
|
2020-08-01 09:37:51 +00:00
|
|
|
*
|
2020-08-05 03:56:54 +00:00
|
|
|
* @var \Webkul\Customer\Models\Customer $customer
|
2020-08-01 09:37:51 +00:00
|
|
|
*/
|
|
|
|
|
public $customer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
|
|
|
|
*
|
2020-08-05 03:56:54 +00:00
|
|
|
* @param \Webkul\Customer\Models\Customer $customer
|
2020-08-01 09:37:51 +00:00
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($customer)
|
|
|
|
|
{
|
|
|
|
|
$this->customer = $customer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Build the message.
|
|
|
|
|
*
|
|
|
|
|
* @return $this
|
|
|
|
|
*/
|
|
|
|
|
public function build()
|
|
|
|
|
{
|
|
|
|
|
return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name'])
|
|
|
|
|
->to($this->customer->email, $this->customer->name)
|
|
|
|
|
->subject(trans('shop::app.mail.update-password.subject'))
|
|
|
|
|
->view('shop::emails.customer.update-password', ['user' => $this->customer]);
|
|
|
|
|
}
|
|
|
|
|
}
|