php - laravel 电子邮件通知中的破碎样式
问题描述
我发送了几行列表:
->line(' - Submit your own recipes and link to your own site.Get customized newsletters based on your food and drink profile.')
->line(' - Take part in contests with amazing prizes and get invited to events!')
->line(' - Are you a business or brand? Create your own profile to promote to your audience!')
但是列表的最后一项会损坏样式:
怎么修?
解决方案
使用以下代码:
class HelloUser extends Notification {
public function via($notifiable){
return ['mail'];
}
public function toMail($notifiable) {
return (new MailMessage)
->line('Submit your own recipes and link to your own site.Get customized newsletters based on your food and drink profile.')
->line('Take part in contests with amazing prizes and get invited to events!')
->line('Are you a business or brand? Create your own profile to promote to your audience!');
}
}
推荐阅读
- android - 动态功能更新
- mongodb - Mongodb:可以使用“$ ne”从带有项目的数组中返回其他值吗?
- java - 将地图添加到列表中。循环列表时创建地图
- jquery - 从 URL 中获取变量
- sql-server - 如何写入 TADOQuery 中的查找字段?
- websphere-liberty - 将应用程序部署到 IBM Liberty Profile 时执行 CICS 请求时出错
- c++ - C++:实例化库中的许多模板
- java - 如何为弹出窗口提供弯曲边缘并为弹出窗口提供明显的阴影
- python - 在子目录中工作时如何正确导入模块?
- mysql - MySQL REGEX 将 json 转换为逗号分隔的键以在 WHERE IN 中使用