lidelin / ding-error-notifier
ding chat error notifier for laravel
Installs: 5 877
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.1.3
- illuminate/support: ^5.5 | ^6.0
- wangju/ding-notice: ^1.0
README
说明
此包来源于 lidelin/ding-error-notifier
Requirements
- PHP 7.1.3+
- Laravel 5.6+
Installation
- Install the package by running this command in your terminal/cmd:
composer require lidelin/ding-error-notifier
- Because we use the ding-notice, so we should configure ding-notice
php artisan vendor:publish --provider="DingNotice\DingNoticeServiceProvider"
- add below configs in app/ding.php
return [ ... 'error-notifier' => [ 'enabled' => env('DING_ERROR_NOTIFIER_ENABLED', true), 'token' => env('DING_ERROR_NOTIFIER_DING_TOKEN', ''), 'timeout' => env('DING_ERROR_NOTIFIER_DING_TIME_OUT', 2.0) ], ];
- publish config/notifier.php
php artisan vendor:publish --provider="LDL\DingErrorNotifier\DingErrorNotifierServiceProvider"
- modify config/notifier.php
<?php return [ /* |-------------------------------------------------------------------------- | notifier name |-------------------------------------------------------------------------- */ 'name' => env('NOTIFIER_NAME', 'ding'), /* |-------------------------------------------------------------------------- | error notify level |-------------------------------------------------------------------------- */ 'level' => env('NOTIFIER_LEVEL', 'error'), /* |-------------------------------------------------------------------------- | ding channel, you can config in ding.php |-------------------------------------------------------------------------- */ 'ding_channel' => env('NOTIFIER_DING_CHANNEL', 'error-notifier'), ];