AsBinary
class AsBinary implements Castable
Properties
| protected string | $format |
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 binary cast instance.
string|null
get(mixed $model, string $key, mixed $value, array $attributes)
Transform the attribute from the underlying model values.
array
set(mixed $model, string $key, mixed $value, array $attributes)
Transform the attribute to its underlying model values.
Details
at line 21
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
at line 29
__construct(array $arguments)
Create a new binary cast instance.
at line 46
string|null
get(mixed $model, string $key, mixed $value, array $attributes)
Transform the attribute from the underlying model values.
at line 64
array
set(mixed $model, string $key, mixed $value, array $attributes)
Transform the attribute to its underlying model values.