public function canton($value) { $id = (int) $value; $cantons = Canton::getCanton($id); return response()->json($cantons); }
function findcanton($id) { $cantontes = Canton::where('provincia_id', $id)->get(); return response()->json($cantontes); }