We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714133c commit aaacb76Copy full SHA for aaacb76
notifications.md
@@ -672,6 +672,22 @@ Markdown 邮件通知使用 Blade 组件和Markdown语法的组合,允许您
672
->content('This will be sent to #other');
673
}
674
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
691
<a name="slack-attachments"></a>
692
### Slack 附加项 (Attachments)
693
0 commit comments