title = $title; return $this; } /** * Set the content of the field. * * @param string $content * @return $this */ public function content($content) { $this->content = $content; return $this; } /** * Indicates that the content should not be displayed side-by-side with other fields. * * @return $this */ public function long() { $this->short = false; return $this; } /** * Get the array representation of the attachment field. * * @return array */ public function toArray() { return [ 'title' => $this->title, 'value' => $this->content, 'short' => $this->short, ]; } }