X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FEvents%2FApplicationChanged.php;fp=app%2FEvents%2FApplicationChanged.php;h=eb37074a6198dfd8db063c4800937ddd40cbaf23;hb=cd36cb0ba2718e6bfa08765e7702d57dfe7fd733;hp=0000000000000000000000000000000000000000;hpb=590c349036ff0a4a568fb57f15bab941ed2ada00;p=alttp.git diff --git a/app/Events/ApplicationChanged.php b/app/Events/ApplicationChanged.php new file mode 100644 index 0000000..eb37074 --- /dev/null +++ b/app/Events/ApplicationChanged.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; + +}