class AsEncryptedCollection implements Castable

Methods

castUsing(array $arguments)

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

__construct(array $arguments)

Create a new encrypted collection cast instance.

Collection|null
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.

Details

at line 23
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 29
__construct(array $arguments)

Create a new encrypted collection cast instance.

Parameters

array $arguments

at line 39
Collection|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

Collection|null

Exceptions

InvalidArgumentException

at line 75
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