itainathaniel / nova-intercom-viewer
Laravel Nova resource tool to view user's data from intercom.io
Installs: 12 815
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
- intercom/intercom-php: ^3.2
This package is not auto-updated.
Last update: 2025-01-09 05:59:49 UTC
README
Laravel Nova resource tool to view user's data from intercom.io
More data view, including some extra data, location & custom attributes
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 itainathaniel/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()
Security
If you discover any security related issues, please email itainathaniel@gmail.com or use the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.