AsCollection
class AsCollection implements Castable
Methods
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
__construct(array $arguments)
Create a new collection cast instance.
Collection|null
Details
at line 22
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
at line 28
__construct(array $arguments)
Create a new collection cast instance.
at line 38
Collection|null
get(Model $model, string $key, mixed $value, array $attributes)
Transform the attribute from the underlying model values.
at line 74
array
set(Model $model, string $key, mixed $value, array $attributes)
Transform the attribute to its underlying model values.