Metable
trait Metable
Properties
array | $allowedMeta | array$allowedMeta |
Methods
Register hooks for the trait.
Register hook on getAttribute method.
Register hook on setAttribute method.
Register hook on toArray method.
Register hook on replicate method.
Register hook on save method.
Register hook on isset call.
Register hook on unset call.
Register hook on queryHook method.
Determine whether meta attribute is allowed for the model.
Determine whether meta attribute exists on the model.
Get meta attribute value.
Set meta attribute.
Meta attributes relation.
Get meta attributes as collection.
Accessor for metaAttributes property
Get meta attributes as associative array.
Get allowed meta attributes array.
Details
at line 29
static void
bootMetable()
Register hooks for the trait.
at line 52
Closure
getAttributeMetable()
Register hook on getAttribute method.
at line 72
Closure
setAttributeMetable()
Register hook on setAttribute method.
at line 92
Closure
toArrayMetable()
Register hook on toArray method.
at line 110
Closure
replicateMetable()
Register hook on replicate method.
at line 130
Closure
saveMetable()
Register hook on save method.
at line 146
Closure
__issetMetable()
Register hook on isset call.
at line 166
Closure
__unsetMetable()
Register hook on unset call.
at line 186
Closure
queryHookMetable()
Register hook on queryHook method.
at line 533
boolean
allowsMeta(string $key)
Determine whether meta attribute is allowed for the model.
at line 546
boolean
hasMeta(string $key)
Determine whether meta attribute exists on the model.
at line 557
mixed
getMeta(string $key)
Get meta attribute value.
at line 569
void
setMeta(string $key, mixed $value)
Set meta attribute.
at line 581
MorphMany
metaAttributes()
Meta attributes relation.
at line 591
AttributeBag
getMetaAttributes()
Get meta attributes as collection.
at line 603
AttributeBag
getMetaAttributesAttribute()
Accessor for metaAttributes property
at line 613
array
getMetaAttributesArray()
Get meta attributes as associative array.
at line 653
array
getAllowedMeta()
Get allowed meta attributes array.