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)
No description
Collection|null
get(mixed $model, string $key, mixed $value, array $attributes)
No description
array
set(mixed $model, string $key, mixed $value, array $attributes)
No description
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 23
__construct(array $arguments)
No description
at line 28
Collection|null
get(mixed $model, string $key, mixed $value, array $attributes)
No description
at line 61
array
set(mixed $model, string $key, mixed $value, array $attributes)
No description