File tree 2 files changed +22
-0
lines changed
src/Illuminate/Notifications
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ protected function attachments(SlackMessage $message)
89
89
'footer ' => $ attachment ->footer ,
90
90
'footer_icon ' => $ attachment ->footerIcon ,
91
91
'ts ' => $ attachment ->timestamp ,
92
+ 'image_url ' => $ attachment ->imageUrl ,
92
93
]);
93
94
})->all ();
94
95
}
Original file line number Diff line number Diff line change @@ -76,6 +76,13 @@ class SlackAttachment
76
76
*/
77
77
public $ timestamp ;
78
78
79
+ /**
80
+ * The attachment's image url.
81
+ *
82
+ * @var string
83
+ */
84
+ public $ imageUrl ;
85
+
79
86
/**
80
87
* Set the title of the attachment.
81
88
*
@@ -218,4 +225,18 @@ public function timestamp(Carbon $timestamp)
218
225
219
226
return $ this ;
220
227
}
228
+
229
+ /**
230
+ * Set the image url.
231
+ *
232
+ * @param string $url
233
+ *
234
+ * @return $this
235
+ */
236
+ public function imageUrl ($ url )
237
+ {
238
+ $ this ->imageUrl = $ url ;
239
+
240
+ return $ this ;
241
+ }
221
242
}
You can’t perform that action at this time.
0 commit comments