wujunze/dingtalk-exception
dingtalk-exception
Laravel/Lumen exception notify through DingTalk
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);
}
}

Config
simple type
use Wujunze\DingTalkException\DingTalkExceptionHelper;
class Handler extends ExceptionHandler
{
// ...
public function report(Exception $exception)
{
DingTalkExceptionHelper::notify($exception, true);
parent::report($exception);
}
}
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 2.2 | ^7.0 | MIT | |
| 2.1 | ^7.0 | MIT | |
| 2.0 | ^7.0 | MIT | |
| 1.1 | MIT | ||
| 1.0 | MIT |