From 29922a24a0352987c0bb97623422294c5cc58862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 8 Mar 2021 15:19:23 +0100 Subject: [PATCH] Billing subscriptions: Event for created --- .../BillingSubscriptionWasCreated.php | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 app/Events/BillingSubscription/BillingSubscriptionWasCreated.php diff --git a/app/Events/BillingSubscription/BillingSubscriptionWasCreated.php b/app/Events/BillingSubscription/BillingSubscriptionWasCreated.php new file mode 100644 index 000000000000..73fc2d1f2f87 --- /dev/null +++ b/app/Events/BillingSubscription/BillingSubscriptionWasCreated.php @@ -0,0 +1,55 @@ +billing_subscription = $billing_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'); + } +}