slaughter550/intercom-laravel

Intercom-PHP 的 Laravel 5.x 封装

3.2.0 2018-09-07 20:12 UTC

This package is auto-updated.

Last update: 2024-09-09 09:41:15 UTC


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'
]);