AsFluent
class AsFluent implements Castable
Methods
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
Fluent|null
array|null
bool
shouldCacheObject(Model $model, string $key, object $value)
Determine if the assigned object can be cached as the attribute value.
Details
at line 20
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
at line 26
Fluent|null
get(Model $model, string $key, mixed $value, array $attributes)
Transform the attribute from the underlying model values.
at line 41
array|null
set(Model $model, string $key, mixed $value, array $attributes)
Transform the attribute to its underlying model values.
at line 59
bool
shouldCacheObject(Model $model, string $key, object $value)
Determine if the assigned object can be cached as the attribute value.