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