shawn805/ding-exception

Laravel exception notify

1.0.3 2019-02-27 06:32 UTC

This package is auto-updated.

Last update: 2024-03-27 18:34:19 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"