Mutable
trait Mutable
Properties
array | $setterMutators | array$setterMutators | |
array | $getterMutators | array$getterMutators |
Methods
static void
bootMutable()
Register hooks for the trait.
getAttributeMutable()
Register hook on getAttribute method.
setAttributeMutable()
Register hook on setAttribute method.
toArrayMutable()
Register hook on toArray method.
boolean
hasGetterMutator(string $key)
Determine whether an attribute has getter mutators defined.
boolean
hasSetterMutator(string $key)
Determine whether an attribute has setter mutators defined.
array
getMutators(string $dir)
Get the array of attribute mutators.
Details
at line 18
static void
bootMutable()
Register hooks for the trait.
at line 32
Closure
getAttributeMutable()
Register hook on getAttribute method.
at line 52
Closure
setAttributeMutable()
Register hook on setAttribute method.
at line 72
Closure
toArrayMutable()
Register hook on toArray method.
at line 104
boolean
hasGetterMutator(string $key)
Determine whether an attribute has getter mutators defined.
at line 115
boolean
hasSetterMutator(string $key)
Determine whether an attribute has setter mutators defined.
at line 152
array
getMutators(string $dir)
Get the array of attribute mutators.