view: foreach ($all_cities as $city) { $country = $city->country->name; }
error (on the line where I assign $country):
ErrorException [ Notice ]: Trying to get property of non-object
But var_dumping $city->country->name correctly returns 'USA'. Plus, $country is then available and working after that assignment. I'm not sure what's happening here...