jorisvanw/intercom-laravel

Laravel Intercom PHP封装器

4.0.3 2019-03-04 16:44 UTC

This package is auto-updated.

Last update: 2024-09-05 04:05:57 UTC


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