32 lines
881 B
PHP
Executable File
32 lines
881 B
PHP
Executable File
<?php
|
|
|
|
namespace Webkul\Customer\Notifications;
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Auth\Notifications\ResetPassword;
|
|
|
|
class CustomerResetPassword extends ResetPassword
|
|
{
|
|
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
if (static::$toMailCallback) {
|
|
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
|
|
}
|
|
|
|
return (new MailMessage)
|
|
->from(config('mail.from'))
|
|
->subject(__('shop::app.mail.forget-password.subject') )
|
|
->view('shop::emails.customer.forget-password', [
|
|
'user_name' => $notifiable->name,
|
|
'token' => $this->token
|
|
]);
|
|
}
|
|
}
|