Join columns if there are same column names

I have master table that holds "Plan Names" and there is another table that holds those Plan's content and connected that table with the plan_id like below.

model PlanName

public $with = ["content"];

public function content()
    return $this->hasMany("App\PlanContent");

model PlanContent

public function names()
    return $this->belongsTo("App\PlanName");

But in plan_names table there are datas has same name. But holds different plan_content. So I want to join datas has same name. How can I make it possible?