定制 wujunze/dingtalk-exception 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

wujunze/dingtalk-exception

最新稳定版本:2.2

Composer 安装命令:

composer require wujunze/dingtalk-exception

包简介

Laravel exception notify through DingTalk

README 文档

README

Laravel/Lumen exception notify through DingTalk

Latest Stable Version Total Downloads License

Inspire And Thanks

cblink/bearychat-exception
wowiwj/ding-notice

Install

composer require wujunze/dingtalk-exception

Add the service provider to the providers array in config/app.php:

DingNotice\DingNoticeServiceProvider::class,

publish the config file:

php artisan vendor:publish --provider="DingNotice\DingNoticeServiceProvider"

Usage

fix file app/Exceptions/Handler.php


use Wujunze\DingTalkException\DingTalkExceptionHelper;

class Handler extends ExceptionHandler
{
  // ...
  
    public function report(Exception $exception)
    {
        DingTalkExceptionHelper::notify($exception);
        parent::report($exception);
    }

}

file

Config

simple type


use Wujunze\DingTalkException\DingTalkExceptionHelper;

class Handler extends ExceptionHandler
{
  // ...
  
    public function report(Exception $exception)
    {
        DingTalkExceptionHelper::notify($exception, true);
        parent::report($exception);
    }

}

统计信息

  • 总下载量: 28.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 96
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 95
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-26