tweak broadcast service provider

This commit is contained in:
Taylor Otwell 2016-08-05 14:28:22 -05:00
parent 89a43434e7
commit 41c0eec70c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
});
}