Skip to content

Meta Model ​

Backs the shared meta table used across spaces, terms, users, and other object types.

Table ​

  • Table: fcom_meta

  • Primary key: id

  • Extends: Model

Attributes ​

ColumnTypeNullableDefaultDescription
idBIGINT UNSIGNEDNo—Primary key for the row.
object_typeVARCHAR(50)No—Discriminator used to reuse the same table for multiple object types.
object_idBIGINTYes—Associated object ID, interpreted together with the object type.
meta_keyVARCHAR(100)No—Meta Key stored for this record.
valueLONGTEXTYes—Serialized meta value.
created_atTIMESTAMPYes—Creation timestamp maintained by the ORM.
updated_atTIMESTAMPYes—Update timestamp maintained by the ORM.

Relationships ​

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

Scopes ​

ScopeParametersPurpose
ByType$query, $typeBy Type scope declared on the model.
ByMetaKey$query, $keyBy Meta Key scope declared on the model.
ByObjectId$query, $objectIdBy Object Id scope declared on the model.

Key Methods ​

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

Usage Examples ​

php
use FluentCommunity\App\Models\Meta;

$records = Meta::query()
    ->byType('example')
    ->limit(10)
    ->get();

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

FluentCommunity developer documentation