]> git.localhorst.tv Git - alttp.git/blobdiff - routes/channels.php
add command to reload clients
[alttp.git] / routes / channels.php
index 5d451e1fae88c81c097aa55de6ff039a3cc0a1c3..4302bb7d72871176f7d244756cdc14ca64197566 100644 (file)
@@ -14,5 +14,9 @@ use Illuminate\Support\Facades\Broadcast;
 */
 
 Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
-    return (int) $user->id === (int) $id;
+       return (int) $user->id === (int) $id;
+});
+
+Broadcast::channel('App.Control', function ($user) {
+       return true;
 });