在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!');
}
然而,在软件设计中使用此功能发送用户注册验证电子邮件是否是一个好的方法?