# WHMCS\User\Client\Contact

`Class` · extends `AbstractModel` · implements `ContactInterface`

A client contact

Client users may have more than one set of contact information on their
account. WHMCS uses this contact information when sending messages from
specific systems. For instance, a client contact can be configured as a
domain contact, and WHMCS will send all domain related email to the contact
instead of the client. The contact object models this extra client contact
information.

## Traits

- `EmailPreferences`


## Methods

### client

```php
public function client()
```

Each contact belongs to one client.

**Returns** `\Illuminate\Database\Eloquent\Relations\BelongsTo`

### remoteAccountLinks

```php
public function remoteAccountLinks()
```

A client can have many linked remote accounts.

**Returns** `\Illuminate\Database\Eloquent\Relations\HasMany`

### orders

```php
public function orders()
```

An addon can have many orders.

**Returns** `HasMany`

### scopeLegacySubaccount

```php
public function scopeLegacySubaccount($query)
```

Retrieve all legacy subaccount contacts.

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `Builder` | `$query` |  |


**Returns** `Builder`

### getFullNameAttribute

```php
public function getFullNameAttribute()
```

"FullName" is the concatenation of first and last name.

In classic WHMCS objects, we compute a field named "name" which combines
the first and last name for convenience in templates.

**Returns** `string` — The combined name

### getCountryNameAttribute

```php
public function getCountryNameAttribute()
```

Returns the human readable name for the contacts country.

**Returns** `string`

### updateLastLogin

```php
public function updateLastLogin(Carbon $time = null, $ip = null, $host = null)
```

### getLanguageAttribute

```php
public function getLanguageAttribute()
```

### getTwoFactorAuthModuleAttribute

```php
public function getTwoFactorAuthModuleAttribute()
```

### getPhoneNumberFormattedAttribute

```php
public function getPhoneNumberFormattedAttribute()
```

Returns formatted phone number.

If PhoneNumberDropdown setting enabled, then phone number will be formatted to be digestable
by jackocnr/intl-tel-input script used.

**Returns** `string`

### tickets

```php
public function tickets()
```

A contact can have many tickets.

**Returns** `HasMany`