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'); + } +}