Send message to webhook discord channel

1.0.14 2021-05-11 22:30 UTC

This package is auto-updated.

Last update: 2024-07-12 05:14:44 UTC


Send messsage to discord hook


Build Status

Project created to decouple the sending of messages to disagree, and in this way keep the project without fixed dependency. Sending messages through the discord hook can facilitate the communication of errors, warn when a tariff ends, among many benefits.


  • Send message to channel discord with hook

Future Features

  • Send message to multiple channel discord with hook
  • Integration Notification Laravel


Laravel Discord Message requires PHP Laravel v8+ to run.

Install the package

composer require frf/discord-notification

After install - Create Discord Hook

Open your channel config and create integration

App Screenshot

Add name your hook and choose your channel

App Screenshot

Put end of file .env configuration link hook in your .env


Exemple to use command line

php artisan discord:send_message Teste
php artisan discord:send_message Teste warning

Exemple to use injection service,

Remembering that there is no better place on the controller 😅, I put it just as a practical example


use Frf\DiscordNotification\Services\DiscordService;
use Illuminate\Support\Facades\Route;

Route::get('/', function (DiscordService $discordService) {

    ->title('Mensagem Teste')

    return view('welcome');


App Screenshot



Free Software, Hell Yeah!