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.

Return Value

void

at line 59
Closure queryHookMappable()

Register hook on customWhere method.

Return Value

Closure

at line 428
string|null getMappingForAttribute(string $key)

Get the mapping key.

Parameters

string $key

Return Value

string|null

at line 452
boolean hasMapping(string $key)

Determine whether a mapping exists for an attribute.

Parameters

string $key

Return Value

boolean

at line 500
Closure getAttributeMappable()

Register hook on getAttribute method.

Return Value

Closure

at line 553
Closure setAttributeMappable()

Register hook on setAttribute method.

Return Value

Closure

at line 599
Closure saveMappable()

Register hook on save method.

Return Value

Closure

at line 629
Closure __issetMappable()

Register hook on isset call.

Return Value

Closure

at line 649
Closure __unsetMappable()

Register hook on unset call.

Return Value

Closure

at line 700
array getMaps()

Get the array of attribute mappings.

Return Value

array