PHP code example of kabbouchi / laravel-logger-discord-channel

1. Go to this page and download the library: Download kabbouchi/laravel-logger-discord-channel 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/ */

    

kabbouchi / laravel-logger-discord-channel example snippets


'channels' => [
    'discord' => [
        'driver' => 'custom',
        'via' => KABBOUCHI\LoggerDiscordChannel\DiscordLogger::class,
        'webhook' => 'https://discordapp.com/api/webhooks/.....',
        'level' => 'DEBUG',
        'role_id' => null, // role to tag in the error,
        'environment' => 'production', // or ['production', 'staging', 'local']
    ],
],
bash
php artisan config:clear