addHours(24), [ 'token' => $token, 'email' => $notifiable->getEmailForPasswordReset(), ], false )); }; } /** * Build the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { /** @var \App\Models\Customer\Customer $notifiable */ $resetUrl = $this->resetUrl($notifiable); /** @var string $firstname */ $firstname = $notifiable->api_data->firstname; return (new MailMessage()) ->subject(trans("Mot de passe oublié - :siteName", ['siteName' => config('app.name')])) /** @var string $firstname */ ->greeting("Bonjour " . $firstname) ->line(trans( "Afin réinitialiser votre mot de passe pour vous connecter à :siteName, cliquez sur le lien suivant :", ['siteName' => config('app.name')] )) /** @var string $verificationUrl */ ->action(trans('Réinitialisez votre mot de passe'), $resetUrl); } }