PHP code example of frf / discord-notification
1. Go to this page and download the library: Download frf/discord-notification 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/ */
frf / discord-notification example snippets
use Frf\DiscordNotification\Services\DiscordService;
use Illuminate\Support\Facades\Route;
Route::get('/', function (DiscordService $discordService) {
$discordService
->title('Mensagem Teste')
->description('Descricao')
->footer('Footer')
->success()
->timestamp(Carbon::now())
->send();
return view('welcome');
});
sh
php artisan discord:send_message Teste
php artisan discord:send_message Teste warning