title: Laravel rename relationship in result for the same names
body: <p>here as you can see i have two <code>car_model</code> both of main table field and relation name:</p>
  <pre><code>App\Models\Product {#1478 ▼
    #connection: &quot;mysql&quot;
    #table: &quot;products&quot;
    ...
    #escapeWhenCastingToString: false
    #attributes: array:21 [▼
      &quot;id&quot; =&gt; 1
      &quot;company_id&quot; =&gt; 1
      ...
      &quot;car_model&quot; =&gt; &quot;test&quot;
      ...
    ]
    #original: array:21 [▶]
    ...
    #relations: array:5 [▼
      &quot;company&quot; =&gt; App\Models\Company {#1506 ▶}
      &quot;car_model&quot; =&gt; App\Models\CarModel {#1508 ▼
        #connection: &quot;mysql&quot;
        #table: &quot;car_models&quot;
        #attributes: array:6 [▼
          &quot;id&quot; =&gt; 1
          &quot;title&quot; =&gt; &quot;test&quot;
          &quot;created_at&quot; =&gt; &quot;:07:25&quot;
          &quot;updated_at&quot; =&gt; &quot;:07:58&quot;
        ]
        ...
        +mediaConversions: []
        +mediaCollections: []
        #deletePreservingMedia: false
        #unAttachedMediaLibraryItems: []
      }
      ...
  }
  </code></pre>
  <p>when i try to get <code>car_model</code> in relation ship and having both <code>car_model</code> how can i get relation data? for example:</p>
  <pre class="lang-php prettyprint-override"><code>$products-&gt;first()-&gt;car_model-&gt;title
  </code></pre>
  <p><code>Product</code> model:</p>
  <pre class="lang-php prettyprint-override"><code>    public function car_model(): BelongsTo
      {
          return $this-&gt;belongsTo(CarModel::class);
      }
  </code></pre>
  <p>and my query:</p>
  <pre class="lang-php prettyprint-override"><code>$this-&gt;products = Product::with(
      [
          'car_model',
      ]
  )-&gt;get();
  </code></pre>