File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ method. Then you can configure the `via` method to include the `SegmentChannel`
171171
172172You can then adjust the ` toSegment ` method to return the event you'd like.
173173
174- ```
174+ ``` php
175175use Illuminate\Notifications\Notification;
176176use SlashEquip\LaravelSegment\Contracts\CanBeIdentifiedForSegment;
177177use SlashEquip\LaravelSegment\Contracts\CanBeSentToSegment;
@@ -181,8 +181,6 @@ use SlashEquip\LaravelSegment\SimpleSegmentEvent;
181181
182182class 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}
You can’t perform that action at this time.
0 commit comments