Commit 9e917410 by Arpit Jain

Worked on city state drop down and also implemented API according to this drop down

parent 996bb8bc
...@@ -24,8 +24,7 @@ class CronController extends Controller ...@@ -24,8 +24,7 @@ class CronController extends Controller
$getLocaterListMetaData = $this->cronList($api_url); $getLocaterListMetaData = $this->cronList($api_url);
for($i=$getLocaterListMetaData['current_page']; $i<=$getLocaterListMetaData['last_page']; $i++){ for($i=$getLocaterListMetaData['current_page']; $i<=$getLocaterListMetaData['last_page']; $i++){
$getLocaterListDataNew = $this->call_api_page($api_url, '', '', '', '', $i);
$getLocaterListDataNew = $this->call_api_page($api_url, '', $i);
$finalData = array_map(function ($data) use ($getLocaterListDataNew) { $finalData = array_map(function ($data) use ($getLocaterListDataNew) {
......
...@@ -129,6 +129,7 @@ class SearchController extends Controller ...@@ -129,6 +129,7 @@ class SearchController extends Controller
} }
} }
/** /**
* For render detail page * For render detail page
* */ * */
...@@ -150,6 +151,7 @@ class SearchController extends Controller ...@@ -150,6 +151,7 @@ class SearchController extends Controller
return view('frontend.searchs.detail', compact('homepage','locatorID','locationDetailAPIdata','pageData')); return view('frontend.searchs.detail', compact('homepage','locatorID','locationDetailAPIdata','pageData'));
} }
/*For showing autocomplete result in index page*/ /*For showing autocomplete result in index page*/
public function autocomplete(Request $request) public function autocomplete(Request $request)
{ {
......
INSERT INTO `cities` (`id`, `name`, `parent_id`, `type`, `status`, `is_deleted`, `created_at`, `updated_at`) VALUES (NULL, 'India', NULL, '1', '1', '0', NULL, NULL); For cron
RUN on browser : WWW_ROOT./cron/getLocaterListData
RUN on browser : WWW_ROOT./cron/getState RUN on browser : WWW_ROOT./cron/getState
RUN on browser : WWW_ROOT./cron/getCity RUN on browser : WWW_ROOT./cron/getCity
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment