From ce879dd84d2d86023a0d50c6e34873a0b25fddd3 Mon Sep 17 00:00:00 2001 From: Bas Date: Tue, 27 Mar 2018 14:43:58 +0200 Subject: [PATCH] Add SlackMessage::info (#23711) I know it defaults to `info` but it's useful to be explicit about it in some cases. --- .../Notifications/Messages/SlackMessage.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Illuminate/Notifications/Messages/SlackMessage.php b/src/Illuminate/Notifications/Messages/SlackMessage.php index 039fa7252c4e..6d61fc766feb 100644 --- a/src/Illuminate/Notifications/Messages/SlackMessage.php +++ b/src/Illuminate/Notifications/Messages/SlackMessage.php @@ -83,6 +83,18 @@ class SlackMessage */ public $http = []; + /** + * Indicate that the notification gives information about an operation. + * + * @return $this + */ + public function info() + { + $this->level = 'info'; + + return $this; + } + /** * Indicate that the notification gives information about a successful operation. *