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