Skip to content

Commit aaacb76

Browse files
committed
feat: sync 20170223 and Update notifications.md use image instead emoji as your logo
1 parent 714133c commit aaacb76

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

notifications.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,22 @@ Markdown 邮件通知使用 Blade 组件和Markdown语法的组合,允许您
672672
->content('This will be sent to #other');
673673
}
674674

675+
你也可以不使用表情符号,改为使用图片作为你的 logo:
676+
677+
/**
678+
* 获取通知的 Slack 展示方式
679+
*
680+
* @param mixed $notifiable
681+
* @return SlackMessage
682+
*/
683+
public function toSlack($notifiable)
684+
{
685+
return (new SlackMessage)
686+
->from('Laravel')
687+
->image('https://laravel.com/favicon.png')
688+
->content('This will display the Laravel logo next to the message');
689+
}
690+
675691
<a name="slack-attachments"></a>
676692
### Slack 附加项 (Attachments)
677693

0 commit comments

Comments
 (0)