Browse Source

tweak broadcast service provider

Taylor Otwell 7 years ago
parent
commit
41c0eec70c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Providers/BroadcastServiceProvider.php

+ 2 - 2
app/Providers/BroadcastServiceProvider.php

@@ -14,9 +14,9 @@ class BroadcastServiceProvider extends ServiceProvider
      */
     public function boot()
     {
-        Broadcast::route(['middleware' => ['web']]);
+        Broadcast::routes();
 
-        Broadcast::auth('channel-name.*', function ($user, $id) {
+        Broadcast::auth('example.*', function ($user, $exampleId) {
             return true;
         });
     }