Downloads
Stars
Version
composer require jourdon/ding-exception
php artisan vendor:publish --provider="Jourdon\DingException\DingExceptionServiceProvider"
DING_ENABLED=true
(必选)发送钉钉机器人的token, 钉钉推送链接:https://oapi.dingtalk.com/robot/send?access_token=your-token
DING_TOKEN=your-token
DING_TRACE=false
use Jourdon\DingException\DingException;
class Handler extends ExceptionHandler
{
//...
public function report(Exception $exception)
{
DingException::notify($exception);
parent::report($exception);
}
//...
}