tweak broadcast service provider
This commit is contained in:
parent
89a43434e7
commit
41c0eec70c
|
@ -14,9 +14,9 @@ class BroadcastServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
Broadcast::route(['middleware' => ['web']]);
|
Broadcast::routes();
|
||||||
|
|
||||||
Broadcast::auth('channel-name.*', function ($user, $id) {
|
Broadcast::auth('example.*', function ($user, $exampleId) {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue