states->where('country_id',$id)->pluck('name','id')->all();
return response()->json($upload);
}
public function gcity(Request $request)
{
$id = $request['catId'];
$state = Allstate::findOrFail($id);
$upload = $state->city->where('state_id',$id)->pluck('name','id')->all();
return response()->json($upload);
}
}