contact key

This commit is contained in:
David Bomba 2019-10-02 19:07:35 +10:00
parent a6579e43df
commit 63ec6d6fcf
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class ClientContactRepository extends BaseRepository
$update_contact->client_id = $client->id;
$update_contact->company_id = $client->company_id;
$update_contact->user_id = $client->user_id;
$update_contact->contact_key = Str::random(40);
}
$update_contact->fill($contact);

View File

@ -44,6 +44,7 @@ class ClientContactTransformer extends EntityTransformer
'custom_value2' => $contact->custom_value2 ?: '',
'custom_value3' => $contact->custom_value3 ?: '',
'custom_value4' => $contact->custom_value4 ?: '',
'contact_key' => $contact->contact_key,
];
}
}