We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed300b commit 4506f6bCopy full SHA for 4506f6b
docs/notification.md
@@ -59,6 +59,7 @@ $user->notify(new TestNotification());
59
userId or groupId. ID can be obtained from FollowEvent or JoinEvent.
60
61
## TextMessage
62
+
63
You can send up to 5 messages.
64
65
```php
@@ -88,6 +89,17 @@ use Revolution\Line\Notifications\LineMessage;
88
89
}
90
```
91
92
+You can also specify a name and icon with `create()` method, which is easier if you're just creating a single text message.
93
94
+```php
95
+use Revolution\Line\Notifications\LineMessage;
96
97
+ public function toLine(object $notifiable): LineMessage
98
+ {
99
+ return LineMessage::create(text: 'test', name: 'alt-name', icon: 'https://...png');
100
+ }
101
+```
102
103
## StickerMessage
104
105
Only the stickers on this page can be used.
0 commit comments