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