Commit 9df814e5 authored by Taylor Otwell's avatar Taylor Otwell

Tweak a few broadcasting configurations.

parent 5fad3768
...@@ -16,8 +16,11 @@ class BroadcastServiceProvider extends ServiceProvider ...@@ -16,8 +16,11 @@ class BroadcastServiceProvider extends ServiceProvider
{ {
Broadcast::routes(); Broadcast::routes();
Broadcast::auth('example.*', function ($user, $exampleId) { /**
return true; * Authenticate the user's personal channel...
*/
Broadcast::auth('App.User.*', function ($user, $userId) {
return (int) $user->id === (int) $userId;
}); });
} }
} }
...@@ -11,7 +11,7 @@ return [ ...@@ -11,7 +11,7 @@ return [
| framework when an event needs to be broadcast. You may set this to | framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below. | any of the connections defined in the "connections" array below.
| |
| Supported: "pusher", "redis", "log" | Supported: "pusher", "redis", "log", "null"
| |
*/ */
...@@ -49,6 +49,10 @@ return [ ...@@ -49,6 +49,10 @@ return [
'driver' => 'log', 'driver' => 'log',
], ],
'null' => [
'driver' => 'null',
],
], ],
]; ];
...@@ -11,7 +11,7 @@ return [ ...@@ -11,7 +11,7 @@ return [
| API, giving you convenient access to each back-end using the same | API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver. | syntax for each one. Here you may set the default queue driver.
| |
| Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis" | Supported: "sync", "database", "beanstalkd", "sqs", "redis", "null"
| |
*/ */
......
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