class SlackWebhookChannel (View source)
protected Client | $http | The HTTP client instance. |
void | __construct(Client $http) Create a new Slack channel instance. | |
void | send(mixed $notifiable, Notification $notification) Send the given notification. | |
array | buildJsonPayload(SlackMessage $message) Build up a JSON payload for the Slack webhook. | |
array | attachments(SlackMessage $message) Format the message's attachments. | |
array | fields(SlackAttachment $attachment) Format the attachment's fields. |
Create a new Slack channel instance.
Send the given notification.
Build up a JSON payload for the Slack webhook.
Format the message's attachments.
Format the attachment's fields.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Notifications/Channels/SlackWebhookChannel.html