class SlackWebhookChannel

Methods

__construct(Client $client)

Create a new Slack channel instance.

ResponseInterface|null
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.

Details

at line 21
__construct(Client $client)

Create a new Slack channel instance.

Parameters

Client $client

at line 29
ResponseInterface|null send(mixed $notifiable, Notification $notification)

Send the given notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

ResponseInterface|null

at line 47
array buildJsonPayload(SlackMessage $message)

Build up a JSON payload for the Slack webhook.

Parameters

SlackMessage $message

Return Value

array

at line 70
protected array attachments(SlackMessage $message)

Format the message's attachments.

Parameters

SlackMessage $message

Return Value

array

at line 99
protected array fields(SlackAttachment $attachment)

Format the attachment's fields.

Parameters

SlackAttachment $attachment

Return Value

array