This has become quite complex, but you can define the relationship with this package as follows:
Country → hasMany → User → hasMany → Post → hasMany → Comment
class Country extends Model
public function comments()
return $this->hasManyDeep('App\Comment', ['App\User', 'App\Post']);
Country::first()->commentsTake all comments that hold the Laravel syntax you have defined you can use it for
More information Obtain Optionally Staudenmeir / eloquent-has-many-deep at Github Visit.