interface CastsAttributes (View source)

Methods

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

Transform the attribute from the underlying model values.

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

Transform the attribute to its underlying model values.

Details

mixed 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

mixed

array|string 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|string