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: notifications.md
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -308,7 +308,7 @@ By default, the email's subject is the class name of the notification formatted
308
308
->subject('Notification Subject')
309
309
->line('...');
310
310
}
311
-
311
+
312
312
<aname="customizing-the-mailer"></a>
313
313
### Customizing The Mailer
314
314
@@ -563,11 +563,17 @@ The `broadcast` channel broadcasts notifications using Laravel's [event broadcas
563
563
]);
564
564
}
565
565
566
-
In addition to the data you specify, broadcast notifications will also contain a `type` field containing the class name of the notification.
566
+
#### Broadcast Queue Configuration
567
+
568
+
All broadcast notifications are queued for broadcasting. If you would like to configure the queue connection or queue name that is used to queue the broadcast operation, you may use the `onConnection` and `onQueue` methods of the `BroadcastMessage`:
569
+
570
+
return (new BroadcastMessage($data))
571
+
->onConnection('sqs')
572
+
->onQueue('broadcasts');
567
573
568
574
#### Customizing The Notification Type
569
575
570
-
If you would like to customize notification type that is passed to your JavaScript client, you may define a `broadcastType` method in the notification class:
576
+
In addition to the data you specify, all broadcast notifications also have a `type` field containing the full class name of the notification. If you would like to customize the notification `type` that is provided to your JavaScript client, you may define a `broadcastType` method on the notification class:
571
577
572
578
use Illuminate\Notifications\Messages\BroadcastMessage;
573
579
@@ -581,14 +587,6 @@ If you would like to customize notification type that is passed to your JavaScri
581
587
return 'broadcast.message';
582
588
}
583
589
584
-
#### Broadcast Queue Configuration
585
-
586
-
All broadcast notifications are queued for broadcasting. If you would like to configure the queue connection or queue name that is used to queue the broadcast operation, you may use the `onConnection` and `onQueue` methods of the `BroadcastMessage`:
0 commit comments