SlackAttachment
class SlackAttachment (View source)
Свойства
| string | $title | Заголовок вложения. | |
| string | $url | URL вложения. | |
| string | $content | Текстовое содержание вложения. | |
| string | $fallback | Текстовый свод вложения. | |
| string | $color | Цвет вложения. | |
| array | $fields | Поля вложения. | |
| array | $markdown | Поля с разметкой Markdown. | |
| string | $imageUrl | URL изображения вложения. | |
| string | $footer | Подвал вложения. | |
| string | $footerIcon | Иконка подвала вложения. | |
| int | $timestamp | Отметка времени вложения. |
Методы
| $this | title(string $title, string $url = null) Установить заголовок вложения. | |
| $this | content(string $content) Установить содержимое (текст) вложения. | |
| $this | fallback(string $fallback) Текстовый свод вложения. | |
| $this | color(string $color) Установить цвет вложения. | |
| $this | field(Closure|string $title, string $content = '') Добавить поле к вложению. | |
| $this | fields(array $fields) Установить поля вложения. | |
| $this | markdown(array $fields) Установить поля с разметкой Markdown. | |
| $this | image(string $url) Установить URL изображения. | |
| $this | footer(string $footer) Установить содержимое подвала. | |
| $this | footerIcon(string $icon) Установить иконку подвала. | |
| $this | timestamp(Carbon $timestamp) Установить отметку времени. |
Подробное описание
$this title(string $title, string $url = null)
Установить заголовок вложения.
$this content(string $content)
Установить содержимое (текст) вложения.
$this fallback(string $fallback)
Текстовый свод вложения.
$this color(string $color)
Установить цвет вложения.
$this field(Closure|string $title, string $content = '')
Добавить поле к вложению.
$this fields(array $fields)
Установить поля вложения.
$this markdown(array $fields)
Установить поля с разметкой Markdown.
$this image(string $url)
Установить URL изображения.
$this footer(string $footer)
Установить содержимое подвала.
$this footerIcon(string $icon)
Установить иконку подвала.
$this timestamp(Carbon $timestamp)
Установить отметку времени.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Notifications/Messages/SlackAttachment.html