Laravel 5.3: hasManyThrough relationship

Solution:

Not sure whether your table structure fits to be able to use hasManyThrough

From what I can see with the documentation you would need

location
  id - integer
  network_id - integer

network
  id - integer
  location_id - integer

owner
  id - integer
  network_id - integer
  name - string

Then you could use

 return $this->hasManyThrough(
            'App\Owner', 'App\Network',
            'location_id', 'network_id', 'id'
        );

That being said you may be able to get it to work by trying different combinations the hasManyThrough e.g.

return $this->hasManyThrough('App\Owner', 'App\Network, 'owner_id', 'id', 'network_id');