コード例 #1
0
 public function associateIdCity($city, $advertisement)
 {
     return $advertisement->city()->associate(City::findOrFail($city));
 }