belongsTo(PricingPlan::class, 'plan_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function currentPlan() { return $this->hasMany(PricingPlan::class, 'id', 'plan_id')->first(); } }