huyct/log-helper
最新稳定版本:v2.0.0
Composer 安装命令:
composer require huyct/log-helper
包简介
Log Helper Package
README 文档
README
- This package help us send log to Telegram channel through a bot chat and it runs with Job in Laravel framework.
1. Requirement and install
- PHP >=7.0
composer require huyct/log-helper
- Add this line to
bootstrap/providers.phpin laravel >=11.0 and inconfig/app.phpin lower version.
\Huyct\TelegramHelper\providers\LogHelperProvider::class,
- Publish config
php artisan vendor:publish --tag=loghelper
# Position of file config: config/loghelper.php
- Add these lines to
.env
TELEGRAM_BOT_TOKEN= TELEGRAM_CHANNEL_LOG_ID= TELEGRAM_CHANNEL_ERROR_ID= // these lines if you lack HELPER_LOG_DRIVER=telegram HELPER_LOG_ENABLE=true HELPER_LOG_QUEUE_NAME=send-log
统计信息
- 总下载量: 203
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-23