From f78c0b3540714597b55ec0e3cc0798a0f5b2e1e8 Mon Sep 17 00:00:00 2001 From: Laurence Ioannou Date: Tue, 21 Feb 2017 14:41:00 +0000 Subject: [PATCH] Update notifications.md --- notifications.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/notifications.md b/notifications.md index 5116d707b05..4fe65a298b3 100644 --- a/notifications.md +++ b/notifications.md @@ -673,6 +673,22 @@ You may use the `from` and `to` methods to customize the sender and recipient. T ->content('This will be sent to #other'); } +You can also use an image instead of an emoji: + + /** + * Get the Slack representation of the notification. + * + * @param mixed $notifiable + * @return SlackMessage + */ + public function toSlack($notifiable) + { + return (new SlackMessage) + ->from('Laravel') + ->image('https://laravel.com/favicon.png') + ->content('This will display the Laravel logo next to the message'); + } + ### Slack Attachments