id ? [ 'is_subscribed' => $this->is_subscribed, 'has_enterprise_subscription' => $this->has_enterprise_subscription, 'admin' => $this->admin, 'template_editor' => $this->template_editor, 'has_customer_id' => $this->has_customer_id, 'has_forms' => $this->has_forms, 'active_license' => $this->licenses()->active()->first(), ] : []; return array_merge(parent::toArray($request), $personalData); } }