+
+ /**
+ * Generate a HTML link to this attachment.
+ */
+ public function htmlLink(): string
+ {
+ return '<a target="_blank" href="'.e($this->getUrl()).'">'.e($this->name).'</a>';
+ }
+
+ /**
+ * Generate a markdown link to this attachment.
+ */
+ public function markdownLink(): string
+ {
+ return '['. $this->name .']('. $this->getUrl() .')';
+ }