From 11de15945838d77b3f5f824b1764c4407435c752 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 Mar 2021 11:11:05 +1100 Subject: [PATCH] Commit event for client subs --- .../ClientSubscriptionWasCreated.php | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 app/Events/ClientSubscription/ClientSubscriptionWasCreated.php diff --git a/app/Events/ClientSubscription/ClientSubscriptionWasCreated.php b/app/Events/ClientSubscription/ClientSubscriptionWasCreated.php new file mode 100644 index 000000000000..ce08f8793247 --- /dev/null +++ b/app/Events/ClientSubscription/ClientSubscriptionWasCreated.php @@ -0,0 +1,55 @@ +client_subscription = $client_subscription; + $this->company = $company; + $this->event_vars = $event_vars; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('channel-name'); + } +}