addMinutes(Config::get('auth.verification.expire', 60)), [ 'id' => $notifiable->getKey(), 'hash' => sha1($notifiable->getEmailForVerification()), ], 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): \Illuminate\Notifications\Messages\MailMessage { // phpcs:enable /** @var \App\Models\Customer $notifiable */ $verificationUrl = $this->verificationUrl($notifiable); $firstname = $notifiable->api_data->firstname; return (new MailMessage()) ->subject(trans("Inscription - :site_name", ['site_name' => config('app.name')])) /** @var string $firstname */ ->greeting("Bonjour " . $firstname) ->line(trans( "Vous venez de créer un compte sur :site_name.", ['site_name' => config('app.name')] )) ->line("Pour confirmer votre inscription, merci de cliquer sur le lien ci-dessous :") /** @var string $verificationUrl */ ->action(trans('Confirmer mon adresse email'), $verificationUrl); } }