News

Laravel Discord Notification Channel

Published
Laravel Discord Notification Channel image

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

Here is an example of how you might send a notification:

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

For complete details check out the Github repo for the Laravel Discord channel.

This package was originally submitted to our Laravel Links section. Follow along on Twitter @LaravelLinks

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article