attributes[$key]; if ($this->isEncrypted() && in_array($key, $this->encrypted)) { try { $value = decrypt($value); } catch (DecryptException $e) { $value = ''; } } if (in_array($key, $this->encoded) && is_string($value)) { $decoded = json_decode($value, true); if (!is_null($decoded)) { $value = $decoded; } } } catch (\Exception $exception) { $value = ''; } return $value; } }