convert binding

This commit is contained in:
Taylor Otwell
2016-10-28 10:09:03 -05:00
parent 5410fb21a7
commit 100c102fc3

View File

@@ -19,7 +19,7 @@ class BroadcastServiceProvider extends ServiceProvider
/*
* Authenticate the user's personal channel...
*/
Broadcast::channel('App.User.*', function ($user, $userId) {
Broadcast::channel('App.User.{userId}', function ($user, $userId) {
return (int) $user->id === (int) $userId;
});
}