aheadworks/laravel-analytics-gateway

0.1.11-beta 2024-04-19 16:50 UTC

README

php artisan vendor:publish --provider="Aheadworks\Analytics\Gateway\ServiceProvider"

For Discord notifications:

  1. composer require marvinlabs/laravel-discord-logger:v1.3.2
  2. Create a Webhook on Discord application
  3. Paste in config/logging.php the next lines:
    'discord' => [
     'driver' => 'custom',
     'via'    => MarvinLabs\DiscordLogger\Logger::class,
     'level'  => 'error',
     'url'    => env('LOG_DISCORD_WEBHOOK_URL', ''),
     'ignore_exceptions' => env('LOG_DISCORD_IGNORE_EXCEPTIONS', false),
    ],
    
  4. Change options in config/analytics.php file:
    'errors' => [
     'logging' => true,
     'log_channel' => 'discord'
    ],