1 ? decrypt($value) : null; } public function set($model, string $key, $value, array $attributes) { return [$key => ! is_null($value) ? encrypt($value) : null]; } }