How to filter data using country,state and city dropdown in microservice

Step 1: create dropdown div block in blade file

Step 2: write jQuery key up and change function

Step 3:pass URL in ajax function for client side microservice

step 4: set routing

$tourcontroller = $namespace.’\TourDetailController’;
Route::get(‘toursdetail/{email}’,”$tourcontroller@gettrip”);

Step 5: write function in client side controller

Step 6: set env and app.php to connect between client and serverside for microservice

GET_MYHOLIDAYTRIP_URL=/api/v1/j/gettripdetail

Step 7: Set routing server side

Route::get(‘gettripdetail/{email}’, ‘Admin\AdminTPController@tripdetail’);

Step 8: create function in server side controller

now run finally project

Tagged : /

Leave a Reply