class SlackMessage (View source)
string | $level | The "level" of the notification (info, success, warning, 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. |
$this | success() Indicate that the notification gives information about a successful operation. | |
$this | warning() Indicate that the notification gives information about a warning. | |
$this | error() Indicate that the notification gives information about an error. | |
$this | from(string $username, string|null $icon = null) Set a custom user icon for the Slack message. | |
$this | to(string $channel) Set the Slack channel the message should be sent to. | |
$this | content(string $content) Set the content of the Slack message. | |
$this | attachment(Closure $callback) Define an attachment for the message. | |
string | color() Get the color for the message. | |
$this | http(array $options) Set additional request options for the Guzzle HTTP client. |
Indicate that the notification gives information about a successful operation.
Indicate that the notification gives information about a warning.
Indicate that the notification gives information about an error.
Set a custom user icon for the Slack message.
Set the Slack channel the message should be sent to.
Set the content of the Slack message.
Define an attachment for the message.
Get the color for the message.
Set additional request options for the Guzzle HTTP client.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Notifications/Messages/SlackMessage.html