Skip to content

Contact Model ​

Bridges FluentCommunity users to FluentCRM contact records when FluentCRM is installed.

Table ​

  • Table: fc_subscribers
  • Primary key: id
  • Schema ownership: FluentCRM table. It is referenced by FluentCommunity when FluentCRM is installed.
  • Extends: Model

Attributes ​

ColumnTypeNullableDefaultDescription
hashstringYes—Hash stored for this record.
prefixstringYes—Prefix stored for this record.
first_namestringYes—First Name stored for this record.
last_namestringYes—Last Name stored for this record.
user_idintegerYes—WordPress user ID associated with the row.
company_idintegerYes—Company ID stored for this record.
emailstringYes—Email stored for this record.
statusstringYes—Lifecycle or moderation status.
contact_typestringYes—Contact Type stored for this record.
address_line_1stringYes—Address Line 1 stored for this record.
address_line_2stringYes—Address Line 2 stored for this record.
postal_codestringYes—Postal Code stored for this record.
citystringYes—City stored for this record.
statestringYes—State stored for this record.
countryintegerYes—Country stored for this record.
phonestringYes—Phone stored for this record.
timezonestringYes—Timezone stored for this record.
date_of_birthdatetimeYes—Date Of Birth stored for this record.
sourcestringYes—Source stored for this record.
life_time_valuestringYes—Life Time Value stored for this record.
last_activitystringYes—Timestamp of the last tracked user activity.
total_pointsstringYes—Accumulated profile points used for rankings and badges.
latitudestringYes—Latitude stored for this record.
longitudestringYes—Longitude stored for this record.
ipstringYes—Ip stored for this record.
created_atdatetimeYes—Creation timestamp maintained by the ORM.
updated_atdatetimeYes—Update timestamp maintained by the ORM.
avatarstringYes—Avatar URL for the profile or user.

Relationships ​

MethodTypeTargetNotes
———No relationships are declared on this model.

Scopes ​

ScopeParametersPurpose
——No custom scopes are declared on this model.

Key Methods ​

MethodDescription
—No additional public methods are documented for this model.

Usage Examples ​

php
use FluentCommunity\App\Models\Contact;

$records = Contact::query()
    
    ->limit(10)
    ->get();

$first = Contact::query()->first();

FluentCommunity developer documentation