public function getNameAttribute() { if (array_key_exists('name', $this->attributes)) { return $this->attributes['name']; } return $this->attributes['name'] = array_get($this->parseContent(), 'name'); }