SlackMessage::to()

$this to(string $channel) Set the Slack channel the message should be sent to. Parameters string $channel Return Value $this

SlackMessage::success()

$this success() Indicate that the notification gives information about a successful operation. Return Value $this

SlackMessage::http()

$this http(array $options) Set additional request options for the Guzzle HTTP client. Parameters array $options Return Value $this

SlackMessage::from()

$this from(string $username, string|null $icon = null) Set a custom user icon for the Slack message. Parameters string $username string|null $icon Return Value $this

SlackMessage::error()

$this error() Indicate that the notification gives information about an error. Return Value $this

SlackMessage::content()

$this content(string $content) Set the content of the Slack message. Parameters string $content Return Value $this

SlackMessage::color()

string color() Get the color for the message. Return Value string

SlackMessage::attachment()

$this attachment(Closure $callback) Define an attachment for the message. Parameters Closure $callback Return Value $this

SlackMessage

SlackMessage class SlackMessage (View source) Properties string $level The "level" of the notification (info, success, error). string|null $username The username to send the message from. string|null $icon The user icon for the message. string|null $channel The channel to send the message on. string $content The text content of the message. array $attachments The message's attachments. array $http Additional request options for the Guzzle HTTP client.

SlackAttachment::title()

$this title(string $title, string $url = null) Set the title of the attachment. Parameters string $title string $url Return Value $this