看了Hanson兄弟的倍洽通知異常php
咱們團隊主要用釘釘,就想找個Laravel的釘釘通知異常的包,最好是安裝後開箱即用的。laravel
在Google和GitHub上找了有3分鐘仍是沒有找到能開箱即用的,因而本身動手豐衣足食。git
花了20分鐘"寫"(chao)了一個Laravel 釘釘通知異常的包 ** wujunze/dingtalk-exception **github
composer require wujunze/dingtalk-exception
複製代碼
php artisan vendor:publish --provider="DingNotice\DingNoticeServiceProvider
複製代碼
app/Exceptions/Handler.phpshell
use Wujunze\DingTalkException\DingTalkExceptionHelper;
class Handler extends ExceptionHandler {
// ...
public function report(Exception $exception) {
DingTalkExceptionHelper::notify($exception);
parent::report($exception);
}
}
複製代碼
記得配置你的 config/ding.phpapp
GitHub倉庫: https://github.com/wujunze/dingtalk-exceptioncomposer
cblink/bearychat-exception
wowiwj/ding-notice ide