subject(Lang::getFromJson('Verify Email Address')) ->line(Lang::getFromJson('Please click the button below to verify your email address.')) ->action( Lang::getFromJson('Verify Email Address'), $this->verificationUrl($notifiable) ) ->line(Lang::getFromJson('If you did not create an account, no further action is required.')); } /** * Get the verification URL for the given notifiable. * * @param mixed $notifiable * @return string */ protected function verificationUrl($notifiable) { return URL::temporarySignedRoute( 'verification.verify', Carbon::now()->addMinutes(60), ['id' => $notifiable->getKey()] ); } /** * Set a callback that should be used when building the notification mail message. * * @param \Closure $callback * @return void */ public static function toMailUsing($callback) { static::$toMailCallback = $callback; } }