order = $order; $this->order->load('customer', 'subscriptions'); $this->license = $license; } public function toArray(): array { return [ 'order' => $this->order, 'license' => $this->license, 'customer' => $this->order->customer ?? [], 'subscriptions' => $this->order->subscriptions ?? [], ]; } public function getActivityEventModel() { return $this->license; } public function shouldCreateActivity(): bool { return true; } }