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