作者 竞泽

docs:usage

正在显示 1 个修改的文件 包含 54 行增加0 行删除
# 配置gitlab仓库
```composer
"repositories": {
"lackoxygen/exception-push": {
"type": "git",
"url": "http://47.107.73.162:8099/lackoxygen/exception-push.git"
},
},
"config": {
"secure-http": false
},
```
# 安装
```
composer require lackoxygen/exception-push
```
# 配置文件
```php
//路径 config/tiktok.shop.php
[
'agents' => [
Wx::class => [
'key' => '',
'enable' => false //启用或停用
], Ding::class => [
'token' => '',
'secret' => '',
'enable' => false //启用或停用
]
],
'client' => [
'timeout' => 30.00, //超时时间
],
'callbacks' => [
'formatter' => null, //格式化内容
'dispatcher' => null //触发发送内容
]
];
```
# 使用方法
```php
php artisan vendor:publish --provider=Lackoxygen\\ExceptionPush\\ExceptionPushProvider
```
... ...