public function get(Model $model, string $key, mixed $value, array $attributes)
{
if ($value === null) {
return null;
}
return Ulid::fromBinary($value)->toRfc4122();
}
public function set(Model $model, string $key, mixed $value, array $attributes)
{
if ($value === null) {
return null;
}
return Ulid::fromString($value)->toBinary();
}
public function get(Model $model, string $key, mixed $value, array $attributes)
{
if ($value === null) {
return null;
}
return Ulid::fromBinary($value)->toRfc4122();
}
public function set(Model $model, string $key, mixed $value, array $attributes)
{
if ($value === null) {
return null;
}
return Ulid::fromString($value)->toBinary();
}