*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the verification URL for the given notifiable. * * @param mixed $notifiable * @return string */ protected function verificationUrl($notifiable) { $params = [ 'id' => $notifiable->getKey(), 'hash' => sha1($notifiable->getEmailForVerification()), ]; if ($this->invite) { $params['invite'] = 1; } return URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(config('auth.verification.expire', 5)), $params ); } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { $verificationUrl = $this->verificationUrl($notifiable); return (new MailMessage) ->subject('Verify Email Address') ->view('mail.email-verification', [ 'user' => $notifiable, 'url' => $verificationUrl, ]); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }