- PHP >= 7.0.0
- Laravel >= 5.5.0
This package requires PHP 7+ and Laravel 5.5
First, install laravel 5.5
composer require hxsd/ding
add the ServiceProvider to the providers array in config/app.php
\HXSD\Ding\Providers\DingProvider::class,
add this to your facades in app.php
'Ding' => \HXSD\Ding\Facades\Ding::class,
Then run these commands to publish assets and config:
php artisan vendor:publish --provider="HXSD\Ding\Providers\DingProvider"
The file config/ding.php contains an array of configurations, you can find the default configurations in there.
'auth_info' => [
// ding CorpId
'corp_id' => '',
// Company secret key
'corp_secret' => '',
// sso secret key
'sso_secret' => '',
// channel secret key
'channel_secret' => '',
],