X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FRoundAdded.php;fp=app%2FEvents%2FRoundAdded.php;h=a1b8787c6b9857e9dbadf6af33066859af88bd5d;hb=4388278823ac8a791641ac1d65fc675e9543b8e8;hp=0000000000000000000000000000000000000000;hpb=2efd7613561696a3abb19ee9f42b15cf9b4058ad;p=alttp.git diff --git a/app/Events/RoundAdded.php b/app/Events/RoundAdded.php new file mode 100644 index 0000000..a1b8787 --- /dev/null +++ b/app/Events/RoundAdded.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; + +}