jorisvanw / intercom-laravel
Laravel Intercom PHP封装器
4.0.3
2019-03-04 16:44 UTC
Requires
- php: >= 7.1
- intercom/intercom-php: 4.*
README
Laravel 5.x 对 Intercom API 的封装
安装
使用 Composer
composer require jorisvanw/intercom-laravel
配置
config/app.php
'providers' => [ 'Shadow\IntercomLaravel\ServiceProvider', ], 'aliases' => [ 'Intercom' => 'Shadow\IntercomLaravel\Facade', ],
config/services.php
'intercom' => [ 'app_id' => 'appIdGoesHere', 'api_key' => 'apiKeyGoesHere', ],
使用方法
// Create/update a user Intercom::users()->create([ 'email' => 'test@intercom.io' ]);