wujunze/dingtalk-exception
最新稳定版本:2.2
Composer 安装命令:
composer require wujunze/dingtalk-exception
包简介
Laravel exception notify through DingTalk
README 文档
README
Laravel/Lumen exception notify through DingTalk
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);
}
}
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
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-26