PHP code example of oscarweb / laravel-discord-report

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

    

oscarweb / laravel-discord-report example snippets


# /config/logging.php

return [
    /** ... */
    'default' => env('LOG_CHANNEL', 'stack'),
    /** ... */
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            //add channel: laravel_discord_report ↓
            'channels' => ['single','laravel_discord_report'], 
            'ignore_exceptions' => false,
        ],
sh
php artisan vendor:publish --provider "LaravelDiscordReport\ServiceProvider"
sh
php artisan config:cache
sh
php artisan config:cache