title: Laravel user address scenario - HasMany
body: <p>User table (<code>users</code>):</p>
  <ul>
  <li>id</li>
  <li>name</li>
  <li>password</li>
  </ul>
  <p>User address table (<code>user_addreses</code>):</p>
  <ul>
  <li>id</li>
  <li>user_id</li>
  <li>city_id</li>
  </ul>
  <p>Cities table (<code>cities</code>):</p>
  <ul>
  <li>id</li>
  <li>name</li>
  </ul>
  <p>User Model:</p>
  <pre class="lang-php prettyprint-override"><code>public function address() {
      return $this-&gt;hasMany('App\Models\UserAddreses');
  }
  </code></pre>
  <p>How can I get the city at this address from the <code>cities</code> table?</p>
  <p><code>UserAddreses</code> model:</p>
  <pre class="lang-php prettyprint-override"><code>public function city() {
      return $this-&gt;belongsTo(City::class);
  }
  </code></pre>
  <blockquote>
  <p>Error: Property [city] does not exist on this collection instance.</p>
  </blockquote>
  <p>The command I need to run:</p>
  <pre class="lang-php prettyprint-override"><code>$user = User::find(Auth::user()-&gt;id);
  dd($user-&gt;address-&gt;city);
  </code></pre>