PHP code example of mehrancodes / laravel-discord-notifier
1. Go to this page and download the library: Download mehrancodes/laravel-discord-notifier library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mehrancodes / laravel-discord-notifier example snippets
// config/discord-notifier.php
'channels' => [
'capitan_hook' => [
'webhook' => 'https://discord.com/api/webhooks/YOUR_CHANNEL_UNIQUE_IDENTIFIER',
],
// You can add as many Discord channels as you like to this array...
]
use MehranCodes\Notifier\Facades\Discord;
Discord::body("The Mehran's new online meeting has ended up successfully")
->embeds([
'title' => 'View Meeting Details On Nova Panel',
'url' => url('nova/resources/meetings/1'),
])
->send();