My Blog Posts

Laravel Discord Package

Laravel Discord Package

This Laravel Discord package allows you to send messages via a webhook through Laravel Notification Channels and supports Discord or Slack-style channels.

Here's an example of how you can send a notification:

public function toDiscord($notifiable)
return (new DiscordMessage)
->embed(function ($embed) {
$embed->title('Discord is cool')->description('Slack nah')
->field('Laravel', '7.0.0', true)
->field('PHP', '8.0.0', true);

See the Github repo for full details.

Share this article

Comments (0)