Custom Fields Values model class

class CustomFieldValue extends AbstractModel

Properties summary

Type Property Description
protected $table
protected $columnMap
protected $fillable Define the fields that can be hydrated by a firstOrNew call.
int $id The unique id of the custom field value
int $fieldId The unique id of the field in tblcustomfields
int $relatedId The related id of the field relationship. tblclients.id, tbltickets.id, tblhostingaddons.id, tblhosting.id
string $value The stored value of the custom field
Addon $addon
Client $client
Service $service
CustomField $customField The custom field this value belongs to

Methods summary

Return Type Method Name Description
BelongsTo|CustomField customField() A custom field value belongs to a single custom field.
BelongsTo|Addon addon() -
BelongsTo|Client client() -
BelongsTo|Service service() -
string|null getValueAttribute($value) -
void setValueAttribute($value) -

Details

BelongsTo|CustomField customField ()

A custom field value belongs to a single custom field.

Return Value

BelongsTo|CustomField

BelongsTo|Addon addon ()

Return Value

BelongsTo|Addon

BelongsTo|Client client ()

Return Value

BelongsTo|Client

BelongsTo|Service service ()

Return Value

BelongsTo|Service

string|null getValueAttribute ($value)

Parameters

$value

Return Value

string|null

void setValueAttribute ($value)

Parameters

$value

Return Value

void