[user]
| id | name | country_id |
| 1 | Vasya | 2 |
| 2 | Petya | 1 |
[country]
| id | name |
| 1 | USA |
| 2 | Russia |
Vasya, Russia
Petya, USA
public function country() {
return $this->hasOne('App\Country', 'id', 'country_id');
}
public function user() {
return $this->belongsTo('App\User');
}
$user->country()->name;