定制 leogopaldev/nova-intercom-viewer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leogopaldev/nova-intercom-viewer

Composer 安装命令:

composer require leogopaldev/nova-intercom-viewer

包简介

Laravel Nova resource tool to view user's data from intercom

README 文档

README

Laravel Nova resource tool to view user's data from intercom.io

Latest Version on Packagist Total Downloads

User profile partial panel screenshot of the user profile partial panel

More data view, including some extra data, location & custom attributes screenshot of the more data view, including some extra data, location & custom attributes

Events view screenshot of the events view

Conversations view screenshot of the conversations view

Notes view screenshot of the notes view

Installation

This package relies on Intercom's Laravel package. If you hadn't installed it already, do that now and follow their instructions, and at the end you need to add Intercom's data to you config/services.php file as follows:

'intercom' => [
    'app_id' => env('INTERCOM_APP_ID'),
    'token' => env('INTERCOM_TOKEN'),
    'secret_key' => env('INTERCOM_SECRET_KEY'),
],

Install the package in to a Laravel app that uses Nova via composer:

composer require leogopaldev/nova-intercom-viewer

Now you can register this resource tool in your App\Nova\User or any other model who uses Intercom on your application. I'll use the User for demonstration purposes:

// in app/Nova/User.php

use Itainathaniel\IntercomViewer\IntercomViewer;

// ...

public function fields()
{
    return [
        // ...
        IntercomViewer::make()->onlyOnDetail(),
    ];
}

The default view in the user profile page contains all the field Intercom provide. You can selectively hide them, by chaining hide function of the maker, like so:

// in app/Nova/User.php

IntercomViewer::make()
	->onlyOnDetail()
	->hideEmail()
	->hideLastseenip(),

And so on. The complete list of functions you could use is this:

  • hideAvatar()
  • hideId()
  • hideEmail()
  • hidePhone()
  • hideName()
  • hideAnonymous()
  • hidePseudonym()
  • hideLastseenip()
  • hideSessioncount()
  • hideUnsubscribedfromemails()
  • hideMarkedemailasspam()
  • hideHashardbounced()
  • hideUseragentdata()
  • hideAnalytics()

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固