简单表:
<table id="myTable">
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>X</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
<td>X</td>
</tr>
</table>Run Code Online (Sandbox Code Playgroud)
我喜欢什么:
我不想创建一个新的降价文件,只想在“没有段落”的称呼中包含一个换行符。
我测试了一切:
->salutation("Atenciosamente,\n\n{$app}")
->salutation("{!! 'Atenciosamente,<br>' !!}{$app}")
->salutation(nl2br(e('Atenciosamente, <br>')). "{$app}")
...
Run Code Online (Sandbox Code Playgroud)
最简单的解决方案:
要在没有段落的情况下换行,您需要使用两个尾随空格和一个输入。
我正在使用 Laravel v5.7 开发多租户(多个数据库),并且我成功发送了队列电子邮件。
在某些特定情况下,我想发送带有“延迟”的按需通知,类似于指南按需通知,但通知发送前应使用的 SMTP 设置。
我开发了一个可以更改 config() 值的类。
应用程序/租户/SmtpConfig.php
class SmtpConfig
{
public static function setConnection(SmtpConta $conta = null)
{
// get connection default settings
$config = config()->get("mail");
// populate connection default settings
foreach ($config as $key => $value) {
if ( $key == 'host' ) { $config[$key] = $conta->mail_host ?? $config[$key]; }
if ( $key == 'from' ) { $config[$key] = [
'address' => ( $conta->mail_host === 'smtp.mailtrap.io' ) ? $config[$key]['address'] : $conta->mail_username,
'name' => …Run Code Online (Sandbox Code Playgroud)