trait Metable

Properties

array $allowedMeta array$allowedMeta

Methods

static void
bootMetable()

Register hooks for the trait.

getAttributeMetable()

Register hook on getAttribute method.

setAttributeMetable()

Register hook on setAttribute method.

toArrayMetable()

Register hook on toArray method.

replicateMetable()

Register hook on replicate method.

saveMetable()

Register hook on save method.

__issetMetable()

Register hook on isset call.

__unsetMetable()

Register hook on unset call.

queryHookMetable()

Register hook on queryHook method.

boolean
allowsMeta(string $key)

Determine whether meta attribute is allowed for the model.

boolean
hasMeta(string $key)

Determine whether meta attribute exists on the model.

mixed
getMeta(string $key)

Get meta attribute value.

void
setMeta(string $key, mixed $value)

Set meta attribute.

MorphMany
metaAttributes()

Meta attributes relation.

getMetaAttributes()

Get meta attributes as collection.

getMetaAttributesAttribute()

Accessor for metaAttributes property

array
getMetaAttributesArray()

Get meta attributes as associative array.

array
getAllowedMeta()

Get allowed meta attributes array.

Details

at line 29
static void bootMetable()

Register hooks for the trait.

Return Value

void

at line 52
Closure getAttributeMetable()

Register hook on getAttribute method.

Return Value

Closure

at line 72
Closure setAttributeMetable()

Register hook on setAttribute method.

Return Value

Closure

at line 92
Closure toArrayMetable()

Register hook on toArray method.

Return Value

Closure

at line 110
Closure replicateMetable()

Register hook on replicate method.

Return Value

Closure

at line 130
Closure saveMetable()

Register hook on save method.

Return Value

Closure

at line 146
Closure __issetMetable()

Register hook on isset call.

Return Value

Closure

at line 166
Closure __unsetMetable()

Register hook on unset call.

Return Value

Closure

at line 186
Closure queryHookMetable()

Register hook on queryHook method.

Return Value

Closure

at line 533
boolean allowsMeta(string $key)

Determine whether meta attribute is allowed for the model.

Parameters

string $key

Return Value

boolean

at line 546
boolean hasMeta(string $key)

Determine whether meta attribute exists on the model.

Parameters

string $key

Return Value

boolean

at line 557
mixed getMeta(string $key)

Get meta attribute value.

Parameters

string $key

Return Value

mixed

at line 569
void setMeta(string $key, mixed $value)

Set meta attribute.

Parameters

string $key
mixed $value

Return Value

void

at line 581
MorphMany metaAttributes()

Meta attributes relation.

Return Value

MorphMany

at line 591
AttributeBag getMetaAttributes()

Get meta attributes as collection.

Return Value

AttributeBag

at line 603
AttributeBag getMetaAttributesAttribute()

Accessor for metaAttributes property

Return Value

AttributeBag

at line 613
array getMetaAttributesArray()

Get meta attributes as associative array.

Return Value

array

at line 653
array getAllowedMeta()

Get allowed meta attributes array.

Return Value

array