composer require lackoxygen/exception-push
- config/tiktok.shop.php
[
'agents' => [
Wx::class => [
'key' => '',
'enable' => false //启用或停用
], Ding::class => [
'token' => '',
'secret' => '',
'enable' => false //启用或停用
]
],
'client' => [
'timeout' => 5.0, //超时时间
],
'callbacks' => [
'formatter' => null, //格式化内容
'dispatcher' => null //触发发送内容
]
];
php artisan vendor:publish --provider=Lackoxygen\\ExceptionPush\\ExceptionPushProvider
use function Lackoxygen\ExceptionPush\notify as notify
notify('hello world', 'debug');