'boolean', 'renew_now' => 'boolean', 'trialing' => 'boolean', ]; public function planPrice() { return $this->hasOne(SubscriptionPlanPrice::class, 'id', 'subscription_plan_price_id')->withTrashed(); } public function paymentCode() { return $this->hasOne(PaymentCode::class, 'id', 'payment_code_id')->withTrashed(); } public function user() { return $this->belongsTo(User::class, 'customer_id', 'id'); } public function discount() { return $this->hasOne(SubscriptionCouponRedemption::class, 'subscription_id', 'id')->withTrashed(); } }