P
Hello deepak,
To send email variable to template, follow below steps :
1)Go to Webkul\Customer\src\Notifications\CustomerResetPassword. Replace toMail function with below code
public function toMail($notifiable)
{
if (static::$toMailCallback) {
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
}
return (new MailMessage)
->subject(__('shop::app.mail.forget-password.subject') )
->view('shop::emails.customer.forget-password', [
'user_name' => $notifiable->name,
'email' => $notifiable->email,
'token' => $this->token
]);
}
Go to views\emails\customer\forget-password.blade.php of Shop package, pass email in route as below
<a href="{{ route('customer.reset-password.create', ['token' => $token, 'email' => $email]) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px">
{{ __('shop::app.mail.forget-password.reset-password') }}
</a>
3)Now, in your ResetPasswordController, you can get email in $request