oscarweb/laravel-discord-report
Laravel Discord Report
It is a package to send errors that are logged in the Laravel application directly to a Discord channel.
- Install vía Composer
composer require oscarweb/laravel-discord-report
Or you can add this line to your composer.json file:
"oscarweb/laravel-discord-report": "^0.2.5"
and run
composer update
- Publish the service provider
php artisan vendor:publish --provider "LaravelDiscordReport\ServiceProvider"
- Add a Webhook
In your .env file you need to add the environment variable.
LDR_WEBHOOK_URL="https://discord.com/api/webhooks/.../..."
- Add Channel
You must add the new channel to your configuration file:
laravel_discord_report
# /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,
],
- Save Config
php artisan config:cache
- Testing

Other environment variables
You can add these variables in your .env file
| Name | Description | Default |
|---|---|---|
LDR_DISABLED |
Disable sending messages to Discord. | false |
LDR_WEBHOOK_URL |
Discord channel webhook URL. | null |
LDR_WEBHOOK_USERNAME |
Name of the bot in the Discord channel. | null |
LDR_WEBHOOK_AVATAR |
Image URL for the bot avatar. | null |
- Example in your .env file:
LDR_WEBHOOK_URL="https://discord.com/api/webhooks/.../..."
LDR_WEBHOOK_USERNAME="Test API Report"
LDR_WEBHOOK_AVATAR="https://i.imgur.com/oBPXx0D.png"
Save config:
php artisan config:cache
Related Packages
guanguans/laravel-exception-notify
Monitor exception and report to the notification channels(Log、Mail、AnPush、Bar...
50,222
149
anpush
bark
bot
chanify
dingtalk
discord
email
error
exception
gitter
googlechat
igot
laravel
lark
log
logger
mail
mattermost
microsoftteams
monitor
notification
notifier
notify
nowpush
ntfy
push
pushback
pushbullet
pushdeer
pushme
pushover
pushplus
qq
qq 频道机器人
rocketchat
sdk
serverchan
server酱
showdocpush
simplepush
slack
telegram
wework
wpush
xizhi
yifengchuanhua
zohocliq
zohocliqwebhook
zulip
一封传话
企业微信
企业微信群机器人
微信
息知
钉钉
钉钉群机器人
飞书
飞书群机器人
saasscaleup/laravel-log-alarm
Laravel log Alarm help you to set up alarm when errors occur in your system and...
35,930
270
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.2.5 | >=7.3 | | ^8.0| | MIT | |
| 0.2.4 | >= 7.3 | | ^8.0| | MIT | |
| 0.2.3 | >= 7.3 | | ^8.0| | MIT | |
| 0.2.2 | ^7.3 | ^8.0| | MIT | |
| 0.2.1 | ^7.3 | ^8.0| | MIT | |
| 0.2.0 | ^7.3 | ^8.0| | MIT | |
| 0.1.1 | ^7.3 | ^8.0| | MIT |