shawn805 / ding-exception
Laravel exception notify
1.0.3
2019-02-27 06:32 UTC
Requires
- php: >=7.0
- wangju/ding-notice: ^1.0
This package is auto-updated.
Last update: 2025-02-27 20:28:33 UTC
README
.
Installing
$ composer require shawn805/ding-exception
Usage
file app/Exceptions/Handler.php
Contributing
use Shawn\DingException\DingException; class Handler extends ExceptionHandler { // ... public function report(Exception $exception) { // $robot 选择哪台机器人进行异常通知 // $is_trace 是否通知详细的trace信息 DingException::notifyException($exception,$robot,$is_trace); parent::report($exception); } }
安装成功后执行
php artisan vendor:publish --provider="DingNotice\DingNoticeServiceProvider"