1. Go to this page and download the library: Download apility/filament-intercom 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/ */
apility / filament-intercom example snippets
use Apility\FilamentIntercom\FilamentIntercomPlugin;
$panel->...
->plugins([
...
FilamentIntercomPlugin::make() //
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Apility\FilamentIntercom\Contracts\IntercomUser;
class User extends Authenticatable implements IntercomUser
{
...
public function getIntercomUserData(): array {
return [
'company' => [
'id' => $this->company->id,
'name' => $this->company->name,
],
];
}
}
ini
INTERCOM_APPID=<your app id>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.