function getTest() { $appendParams = array('page' => 20, 'exists' => 'yes', 'hello' => 'itsworking'); $url = 'http://laravel5.dev/profile/search?combine=name&field_living_location_value=pune&field_gender_value=All&field_religion_value=All&page=2'; $res = Common::appendParamToUrlNew($appendParams, $url); print_r($res); }
public function getCheckInterest() { $this->url = $this->site_url . '/m2serve/expressInterest'; $userData['user'] = $this->request->session()->get('uid'); $userData['interest_to'] = $this->request->get('interest_to'); $userData['interest_flag'] = 'check'; $this->result = Common::validateCurlResponse($this->cURL($this->url, $userData, Null, 'POST')); //print_r($this->result);exit; if (is_object($this->result)) { return $this->result; exit; } else { $output = json_decode($this->result, TRUE); return $output; exit; } }