SlackWebhookChannel
class SlackWebhookChannel (View source)
Properties
protected Client | $http | The HTTP client instance. |
Methods
void
__construct(Client $http)
Create a new Slack channel instance.
ResponseInterface
array
array
array
Details
void
__construct(Client $http)
Create a new Slack channel instance.
ResponseInterface
send(mixed $notifiable, Notification $notification)
Send the given notification.
protected array
buildJsonPayload(SlackMessage $message)
Build up a JSON payload for the Slack webhook.
protected array
attachments(SlackMessage $message)
Format the message's attachments.
protected array
fields(SlackAttachment $attachment)
Format the attachment's fields.