/** * get province list by basin * @return mixed */ public function provincesByBasin() { $basin = Input::get('basin'); $provinces = array(); if (is_array($basin)) { foreach ($basin as $b) { $provinces = array_merge($provinces, TeleStation::provincesByBasin($b)); } } else { $provinces = array_merge($provinces, TeleStation::provincesByBasin($basin)); } return Response::json($provinces); }