You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,20 @@ $connector->send($card);
26
26
27
27
### Custom card
28
28
29
-
You can create your own cards for every purpose you need, just extend the **AbstractCard** class and implement the `getMessage()` function. This is an example of a [Laravel Forge deployment card](https://github.com/sebbmeyer/laravel-teams-connector)
29
+
You can use the provided **CustomCard** class and add a color, facts, images, an activity, actions or a summary to it.
30
+
31
+
```php
32
+
// create a custom card
33
+
$card = new \Sebbmyr\Teams\Cards\CustomCard('Package update', 'A custom card class was added to the package.');
->addFacts('Facts Section',['Fact Name 1' => 'Fact Value 1','Fact Name 2' => 'Fact Value 2']);
40
+
```
41
+
42
+
Or you can create your own cards for every purpose you need, just extend the **AbstractCard** class and implement the `getMessage()` function. This is an example of a [Laravel Forge deployment card](https://github.com/sebbmeyer/laravel-teams-connector)
0 commit comments