Laravel 7-向验证电子邮件添加其他链接

时间:2020-11-10 20:41:12

标签: laravel laravel-7

是否可以使用默认的Laravel类为验证电子邮件创建其他链接?

public function toMail($notifiable)
    {
        if (static::$toMailCallback) {
            return call_user_func(static::$toMailCallback, $notifiable);
        }
        return (new MailMessage)
            ->subject('Verify email address')
            ->line('Please click the button below to confirm your email address.')
            ->action(
                'Confirm Email Address',
                $this->verificationUrl($notifiable)
            )
            ->line('Important')
            ->line('Once you have confirmed your email address, please return and complete your profile information by filling out all required fields in your profile. ')
            ->line('Once all the fields turn green in the verification centre, it means you have filled out the required elements of your profile. Please wait for 48 hours for your account to be verified via email or phone call.');
    }

我试图重复动作方法,但是什么也没发生。

0 个答案:

没有答案