PHP code example of leogopaldev / nova-intercom-viewer

1. Go to this page and download the library: Download leogopaldev/nova-intercom-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

leogopaldev / nova-intercom-viewer example snippets


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

// in app/Nova/User.php

use Itainathaniel\IntercomViewer\IntercomViewer;

// ...

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

// in app/Nova/User.php

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