public function getExcerptAttribute() { if (empty(self::$shortcodes)) { return $this->post_excerpt; } return $this->stripShortcodes($this->post_excerpt); }