Mappable
trait Mappable
Properties
static array | $mappedAttributes | Flat array representation of mapped attributes. | |
array | $maps | array$maps |
Methods
static void
bootMappable()
Register hooks for the trait.
queryHookMappable()
Register hook on customWhere method.
string|null
getMappingForAttribute(string $key)
Get the mapping key.
boolean
hasMapping(string $key)
Determine whether a mapping exists for an attribute.
getAttributeMappable()
Register hook on getAttribute method.
setAttributeMappable()
Register hook on setAttribute method.
saveMappable()
Register hook on save method.
__issetMappable()
Register hook on isset call.
__unsetMappable()
Register hook on unset call.
array
getMaps()
Get the array of attribute mappings.
Details
at line 38
static void
bootMappable()
Register hooks for the trait.
at line 59
Closure
queryHookMappable()
Register hook on customWhere method.
at line 428
string|null
getMappingForAttribute(string $key)
Get the mapping key.
at line 452
boolean
hasMapping(string $key)
Determine whether a mapping exists for an attribute.
at line 500
Closure
getAttributeMappable()
Register hook on getAttribute method.
at line 553
Closure
setAttributeMappable()
Register hook on setAttribute method.
at line 599
Closure
saveMappable()
Register hook on save method.
at line 629
Closure
__issetMappable()
Register hook on isset call.
at line 649
Closure
__unsetMappable()
Register hook on unset call.
at line 700
array
getMaps()
Get the array of attribute mappings.