Download the PHP package awssat/discord-notification-channel without Composer
On this page you can find all versions of the php package awssat/discord-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awssat/discord-notification-channel
More information about awssat/discord-notification-channel
Files in awssat/discord-notification-channel
Package discord-notification-channel
Short Description Discord Notification Channel for laravel.
License MIT
Informations about the package discord-notification-channel
Laravel Discord Notification Channel
Introduction
Send Discord messages through webhook with Discord or Slack payload via Laravel Notifications channels
Features
- Support slack payload by using
new (new SlackMessage)or$this->toSlack($notifiable) - Support discord webhook payload
- Easy to use
Install
Via Composer
Usage
in your notification you should define the discord channel in the via method
you should have a toDiscord method
toDiscord method can receive DiscordMessage or SlackMessage
Example of slack message
or if you want you can make it run from toSlack method
https://laravel.com/docs/6.x/notifications#slack-notifications for further laravel slack messages examples
Routing Discord Notifications
To route Discord notifications to the proper location, define a routeNotificationForDiscord method on your notifiable entity. This should return the webhook URL to which the notification should be delivered. read Webhook Discord docs here https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks
All versions of discord-notification-channel with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ^10.0|^11.0|^12.0|^13.0
laravel/slack-notification-channel Version ^3.2