1. Go to this page and download the library: Download hl/hiloxa-trigger 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/ */
hl / hiloxa-trigger example snippets
return [
/*
* Which base URL to use for trigger.
*/
'base_url' => env('HILOXA_TRIGGER_BASE_URL', 'https://rest.gohighlevel.com/v1'),
'api_key' => env('HILOXA_TRIGGER_API_KEY'),
'trigger' => [
'create' => true,
'update' => true,
],
'model_data' => \HL\HiloxaTrigger\DTO\CreateDTO::class
];
use HL\HiloxaTrigger\Trait\HiloxaTrigger;
use HL\HiloxaTrigger\Contracts\HiloxaAble;
class Customer extends Model implements HiloxaAble
{
use HiloxaTrigger;
}
class Customer extends Model implements HiloxaAble
{
use HiloxaTrigger;
public function hiloxaDTO($model): HiloxaDTO
{
return new CustomerDTO($model);
}
}