SlackAttachment
class SlackAttachment
Properties
string | $title | The attachment's title. |
|
string | $url | The attachment's URL. |
|
string | $content | The attachment's text content. |
|
string | $fallback | A plain-text summary of the attachment. |
|
string | $color | The attachment's color. |
|
array | $fields | The attachment's fields. |
|
array | $markdown | The fields containing markdown. |
|
string | $imageUrl | The attachment's image url. |
|
string | $footer | The attachment's footer. |
|
string | $footerIcon | The attachment's footer icon. |
|
int | $timestamp | The attachment's timestamp. |
Methods
Set the title of the attachment.
Set the content (text) of the attachment.
A plain-text summary of the attachment.
Set the color of the attachment.
Set the fields of the attachment.
Set the fields containing markdown.
Set the image URL.
Set the footer content.
Set the footer icon.
Set the timestamp.
Details
at line 93
$this
title(string $title, string $url = null)
Set the title of the attachment.
at line 107
$this
content(string $content)
Set the content (text) of the attachment.
at line 120
$this
fallback(string $fallback)
A plain-text summary of the attachment.
at line 133
$this
color(string $color)
Set the color of the attachment.
at line 147
$this
field(Closure|string $title, string $content = '')
Add a field to the attachment.
at line 170
$this
fields(array $fields)
Set the fields of the attachment.
at line 183
$this
markdown(array $fields)
Set the fields containing markdown.
at line 196
$this
image(string $url)
Set the image URL.
at line 209
$this
footer(string $footer)
Set the footer content.
at line 222
$this
footerIcon(string $icon)
Set the footer icon.
at line 235
$this
timestamp(Carbon $timestamp)
Set the timestamp.