AsEnumCollection
class AsEnumCollection implements RequestCastable
Methods
static string
of(string $enum)
Get the caster declaration for the given enum.
static CastsRequestInput|string
castRequestUsing(array $arguments)
Get the request input caster.
__construct(string $enum)
Create an enum collection caster.
Collection|null
cast(string $key, mixed $value, array $input)
Cast the given value to a collection of enums.
Details
at line 23
static string
of(string $enum)
Get the caster declaration for the given enum.
at line 33
static CastsRequestInput|string
castRequestUsing(array $arguments)
Get the request input caster.
at line 45
__construct(string $enum)
Create an enum collection caster.
at line 52
Collection|null
cast(string $key, mixed $value, array $input)
Cast the given value to a collection of enums.