Skip to content

Commit 7f11143

Browse files
committed
Update readme.
1 parent 61d3f23 commit 7f11143

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ method. Then you can configure the `via` method to include the `SegmentChannel`
171171

172172
You can then adjust the `toSegment` method to return the event you'd like.
173173

174-
```
174+
```php
175175
use Illuminate\Notifications\Notification;
176176
use SlashEquip\LaravelSegment\Contracts\CanBeIdentifiedForSegment;
177177
use SlashEquip\LaravelSegment\Contracts\CanBeSentToSegment;
@@ -181,8 +181,6 @@ use SlashEquip\LaravelSegment\SimpleSegmentEvent;
181181

182182
class UserSubscribed extends Notification implements CanNotifyViaSegment
183183
{
184-
use Notifiable;
185-
186184
public function __construct(
187185
) {
188186
}
@@ -197,7 +195,10 @@ class UserSubscribed extends Notification implements CanNotifyViaSegment
197195
return new SimpleSegmentEvent(
198196
$notifiable,
199197
'User Subscribed',
200-
['some' => 'thing'],
198+
[
199+
'plan' => 'basic',
200+
'team_name' => 'Funky chickens',
201+
],
201202
);
202203
}
203204
}

0 commit comments

Comments
 (0)