shawn805/ding-exception is a Laravel package for laravel exception notify.
It currently has 2 GitHub stars and 252 downloads on Packagist (latest version 1.0.3).
Install it with composer require shawn805/ding-exception.
Discover more Laravel packages by shawn805
or browse all Laravel packages to compare alternatives.
Last updated
.
$ 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"