Skip to content

Commit d3b95b9

Browse files
committed
formatting
1 parent 7e87166 commit d3b95b9

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

notifications.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ By default, the email's subject is the class name of the notification formatted
308308
->subject('Notification Subject')
309309
->line('...');
310310
}
311-
311+
312312
<a name="customizing-the-mailer"></a>
313313
### Customizing The Mailer
314314

@@ -563,11 +563,17 @@ The `broadcast` channel broadcasts notifications using Laravel's [event broadcas
563563
]);
564564
}
565565

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');
567573

568574
#### Customizing The Notification Type
569575

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:
571577

572578
use Illuminate\Notifications\Messages\BroadcastMessage;
573579

@@ -581,14 +587,6 @@ If you would like to customize notification type that is passed to your JavaScri
581587
return 'broadcast.message';
582588
}
583589

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`:
587-
588-
return (new BroadcastMessage($data))
589-
->onConnection('sqs')
590-
->onQueue('broadcasts');
591-
592590
<a name="listening-for-notifications"></a>
593591
### Listening For Notifications
594592

0 commit comments

Comments
 (0)