slaughter550 / intercom-laravel
Intercom-PHP 的 Laravel 5.x 封装
3.2.0
2018-09-07 20:12 UTC
Requires
- intercom/intercom-php: 3.2.0
- laravel/framework: >=5.0
README
Laravel 5.x 对 Intercom API 的封装
安装
使用 Composer
composer require slaughter550/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' ]);