X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FUserChanged.php;fp=app%2FEvents%2FUserChanged.php;h=9009c445b18d29d0939a5a3f4b14555451738182;hb=920f11ddfeb2175e4e1556886773dcd044c6085b;hp=0000000000000000000000000000000000000000;hpb=7016f4b28fa1324269ae9e2a8aad28dd562927d4;p=alttp.git diff --git a/app/Events/UserChanged.php b/app/Events/UserChanged.php new file mode 100644 index 0000000..9009c44 --- /dev/null +++ b/app/Events/UserChanged.php @@ -0,0 +1,43 @@ +user = $user; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return [ + new Channel('App.Control'), + new PrivateChannel('App.Models.User.'.$this->user->id), + ]; + } + + public $user; + +}