class AsArrayObject 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)

No description

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

No description

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

No description

Details

at line 19
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 22
ArrayObject|null get(Model $model, string $key, mixed $value, array $attributes)

No description

Parameters

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

Return Value

ArrayObject|null

at line 33
array set(Model $model, string $key, mixed $value, array $attributes)

No description

Parameters

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

Return Value

array

at line 44
array serialize(Model $model, string $key, mixed $value, array $attributes)

No description

Parameters

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

Return Value

array