We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84526c9 commit 398f494Copy full SHA for 398f494
src/Illuminate/Foundation/Configuration/ApplicationBuilder.php
@@ -105,12 +105,13 @@ public function withEvents(array $discover = [])
105
* Register the braodcasting services for the application.
106
*
107
* @param string $channels
108
+ * @param array $attributes
109
* @return $this
110
*/
- public function withBroadcasting(string $channels)
111
+ public function withBroadcasting(string $channels, array $attributes = [])
112
{
- $this->app->booted(function () use ($channels) {
113
- Broadcast::routes();
+ $this->app->booted(function () use ($channels, $attributes) {
114
+ Broadcast::routes(! empty($attributes) ? $attributes : null);
115
116
if (file_exists($channels)) {
117
require $channels;
0 commit comments