public function associateIdCity($city, $advertisement) { return $advertisement->city()->associate(City::findOrFail($city)); }