huyct/log-helper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.php in laravel >=11.0 and in config/app.php in 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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-23