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