From 51ff5f3644a318b999cc47491baa5d7c9d36d7ad Mon Sep 17 00:00:00 2001 From: Oanh Nguyen Date: Tue, 27 Mar 2018 11:23:49 +0700 Subject: [PATCH] Fix incorrect relationship in Feature and Plan model classes --- src/Models/Feature.php | 1 - src/Models/Plan.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Models/Feature.php b/src/Models/Feature.php index 250790b..05f3f76 100644 --- a/src/Models/Feature.php +++ b/src/Models/Feature.php @@ -85,7 +85,6 @@ public function usage() { return $this->hasMany( Config::get('plans.models.PlanSubscriptionUsage'), - Config::get('plans.tables.plan_subscription_usages'), 'feature_code', 'code' ); diff --git a/src/Models/Plan.php b/src/Models/Plan.php index eda31cd..031f8f4 100644 --- a/src/Models/Plan.php +++ b/src/Models/Plan.php @@ -109,7 +109,6 @@ public function subscriptions() { return $this->hasMany( Config::get('plans.models.PlanSubscription'), - Config::get('plans.tables.plan_subscriptions'), 'plan_id', 'id' );