APIcall('POST', $this->wrenchApiServer(). 'start',$in); $out["promo"] = $promo; $out["promo_owner"] = $promoOwner; var_dump( $out ); if ( $out["status_message"] != "VALID_LINK_FOUND"){ return redirect()->to($out["user_server_name"]); } $out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in)["result_list"]; return view('welcome_message', $out); } }