X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FProtocolAdded.php;fp=app%2FEvents%2FProtocolAdded.php;h=3abcb8639b843dd73832b0738018d10e7ab266de;hb=4388278823ac8a791641ac1d65fc675e9543b8e8;hp=0000000000000000000000000000000000000000;hpb=2efd7613561696a3abb19ee9f42b15cf9b4058ad;p=alttp.git diff --git a/app/Events/ProtocolAdded.php b/app/Events/ProtocolAdded.php new file mode 100644 index 0000000..3abcb86 --- /dev/null +++ b/app/Events/ProtocolAdded.php @@ -0,0 +1,41 @@ +load('user'); + $this->protocol = $protocol; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('Tournament.'.$this->protocol->tournament_id); + } + + public $protocol; + +}