class AsUri implements Castable

Methods

castUsing(array $arguments)

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

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

Cast the stored value to a URI.

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

Prepare the URI for storage.

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 25
Uri|null get(Model $model, string $key, mixed $value, array $attributes)

Cast the stored value to a URI.

Parameters

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

Return Value

Uri|null

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

Prepare the URI for storage.

Parameters

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

Return Value

string|null