class AsEncryptedArrayObject implements Castable

Methods

castUsing(array $arguments)

Get the caster class to use when casting from / to this cast target.

get(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute from the underlying model values.

array|null
set(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute to its underlying model values.

bool
shouldCacheObject(Model $model, string $key, object $value)

Determine if the assigned object can be cached as the attribute value.

array|null
serialize(Model $model, string $key, mixed $value, array $attributes)

Serialize the attribute for an array or JSON response.

Details

at line 22
static CastsAttributes|CastsInboundAttributes|string castUsing(array $arguments)

Get the caster class to use when casting from / to this cast target.

Parameters

array $arguments

Return Value

CastsAttributes|CastsInboundAttributes|string

at line 28
ArrayObject|null get(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute from the underlying model values.

Parameters

Model $model
string $key
mixed $value
array $attributes

Return Value

ArrayObject|null

at line 42
array|null set(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute to its underlying model values.

Parameters

Model $model
string $key
mixed $value
array $attributes

Return Value

array|null

at line 63
bool shouldCacheObject(Model $model, string $key, object $value)

Determine if the assigned object can be cached as the attribute value.

Parameters

Model $model
string $key
object $value

Return Value

bool

at line 71
array|null serialize(Model $model, string $key, mixed $value, array $attributes)

Serialize the attribute for an array or JSON response.

Parameters

Model $model
string $key
mixed $value
array $attributes

Return Value

array|null