你可以在 Laravel 中通过电子邮件发送通知……
<?php
public function toMail($notifiable)
{
$url = url('/invoice/' . $this->invoice->id);
return (new MailMessage)
->greeting('Hello!')
->line('One of your invoices has been paid!')
->action('View Invoice', $url)
->line('Thank you for using our application!');
}
但是,在用户注册时使用此功能发送验证电子邮件是否是一种好方法(在软件设计中)?