PHP code example of danjamesmills / config-class-resolver
1. Go to this page and download the library: Download danjamesmills/config-class-resolver 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/ */
danjamesmills / config-class-resolver example snippets
return [
/*
* Here you can specify which relationship(s) the call model has.
*/
'associations' => [
'contact' => [
'field_key' => 'contact_ids',
'class' => \DanJamesMills\CRM\Models\Contact::class,
'relationship_name' => 'contacts',
],
'company' => [
'field_key' => 'company_ids',
'class' => \DanJamesMills\CRM\Models\Company::class,
'relationship_name' => 'companies',
],
]
]