X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FRoundChanged.php;fp=app%2FEvents%2FRoundChanged.php;h=91d641bc0fb1b5f6cb9b83dbc3a01a2409c69293;hb=a907ef7c6676fef11f42933b2d79bdd496b20122;hp=0000000000000000000000000000000000000000;hpb=06fd14404164904304a20e2280037e83299247fa;p=alttp.git diff --git a/app/Events/RoundChanged.php b/app/Events/RoundChanged.php new file mode 100644 index 0000000..91d641b --- /dev/null +++ b/app/Events/RoundChanged.php @@ -0,0 +1,40 @@ +round = $round; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('Tournament.'.$this->round->tournament_id); + } + + public $round; + +}