SlackAttachment
class SlackAttachment (View source)
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 | $footer | The attachment's footer. | |
string | $footerIcon | The attachment's footer icon. | |
int | $timestamp | The attachment's timestamp. |
Methods
$this | title(string $title, string $url = null) Set the title of the attachment. | |
$this | content(string $content) Set the content (text) of the attachment. | |
$this | fallback(string $fallback) A plain-text summary of the attachment. | |
$this | color(string $color) Set the color of the attachment. | |
$this | field(Closure|array $title, string $content = '') Add a field to the attachment. | |
$this | fields(array $fields) Set the fields of the attachment. | |
$this | markdown(array $fields) Set the fields containing markdown. | |
$this | footer(string $footer) Set the footer content. | |
$this | footerIcon(string $icon) Set the footer icon. | |
$this | timestamp(Carbon $timestamp) Set the timestamp. |
Details
$this title(string $title, string $url = null)
Set the title of the attachment.
$this content(string $content)
Set the content (text) of the attachment.
$this fallback(string $fallback)
A plain-text summary of the attachment.
$this color(string $color)
Set the color of the attachment.
$this field(Closure|array $title, string $content = '')
Add a field to the attachment.
$this fields(array $fields)
Set the fields of the attachment.
$this markdown(array $fields)
Set the fields containing markdown.
$this footer(string $footer)
Set the footer content.
$this footerIcon(string $icon)
Set the footer icon.
$this timestamp(Carbon $timestamp)
Set the timestamp.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Notifications/Messages/SlackAttachment.html