Skip to content
Laravel exception notify through DingTalk
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests tentative Jul 26, 2018
.gitignore tentative Jul 26, 2018
LICENSE
README.md add simple type Jul 27, 2018
composer.json fix license Jul 26, 2018
composer.lock

README.md

dingtalk-exception

Laravel exception notify through DingTalk

Latest Stable Version Total Downloads License

Inspire And Thanks

cblink/bearychat-exception
wowiwj/ding-notice

Install

composer require wujunze/dingtalk-exception

Add the service provider to the providers array in config/app.php:

DingNotice\DingNoticeServiceProvider"::class,

publish the config file:

php artisan vendor:publish --provider="DingNotice\DingNoticeServiceProvider"

Usage

fix file app/Exceptions/Handler.php


use Wujunze\DingTalkException\DingTalkExceptionHelper;

class Handler extends ExceptionHandler
{
  // ...
  
    public function report(Exception $exception)
    {
        DingTalkExceptionHelper::notify($exception);
        parent::report($exception);
    }

}

file

Config

simple type


use Wujunze\DingTalkException\DingTalkExceptionHelper;

class Handler extends ExceptionHandler
{
  // ...
  
    public function report(Exception $exception)
    {
        DingTalkExceptionHelper::notify($exception, true);
        parent::report($exception);
    }

}

You can’t perform that action at this time.