Commit 41c0eec7 authored by Taylor Otwell's avatar Taylor Otwell

tweak broadcast service provider

parent 89a43434
......@@ -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;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment