Downloads
Stars
Version
.
$ composer require shawn805/ding-exception
file app/Exceptions/Handler.php
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"