X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FResultReported.php;fp=app%2FEvents%2FResultReported.php;h=2a3eeb011539b7c0b58734b290a297a911c66427;hb=d748feb96453d74aeffec648d6f5f68d9ef3b520;hp=0000000000000000000000000000000000000000;hpb=c30ac282dde3d746d6a7762ee18c70b4416500b5;p=alttp.git diff --git a/app/Events/ResultReported.php b/app/Events/ResultReported.php new file mode 100644 index 0000000..2a3eeb0 --- /dev/null +++ b/app/Events/ResultReported.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 PrivateChannel('Tournament.'.$this->result->round->tournament_id); + } + + public $result; + +}