SlackMessage::http()

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

SlackMessage::to()

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

SlackWebhookChannel::send()

ResponseInterface send(mixed $notifiable, Notification $notification) Send the given notification. Parameters mixed $notifiable Notification $notification Return Value ResponseInterface

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::error()

$this error() Indicate that the notification gives information about an error. 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::attachment()

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

SlackAttachment

SlackAttachment class SlackAttachment (View source) Properties string $title The attachment's title. string $url The attachment's URL. string $content The attachment's text content. array $fields The attachment's fields.

SimpleMessage::with()

$this with(Action|string|array $line) Add a line of text to the notification. Parameters Action|string|array $line Return Value $this