*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { /** @var MustVerifyEmail $notifiable */ $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(Config::get('auth.verification.expire', 60)), [ 'id' => $notifiable->getKey(), 'hash' => sha1($notifiable->getEmailForVerification()), ], ); return (new MailMessage) ->subject('Vérifie ton adresse email') ->view('mail.auth.verify-email', [ 'notifiable' => $notifiable, 'verificationUrl' => $verificationUrl, ]); } }