SlackChannel
class SlackChannel
Constants
| CONNECTION |
The HTTP connection used to send Slack API messages. |
Methods
Response|null
array
buildJsonPayload(SlackMessage $message, SlackRoute $route)
Build the JSON payload for the Slack chat.postMessage API.
determineRoute(mixed $notifiable, Notification $notification)
Determine the API Token and Channel that the notification should be posted to.
Details
at line 24
__construct(Factory $http)
Create a new Slack channel instance.
at line 32
Response|null
send(mixed $notifiable, Notification $notification)
Send the given notification.
at line 64
protected array
buildJsonPayload(SlackMessage $message, SlackRoute $route)
Build the JSON payload for the Slack chat.postMessage API.
at line 76
protected SlackRoute
determineRoute(mixed $notifiable, Notification $notification)
Determine the API Token and Channel that the notification should be posted to.