public function canton($value)
 {
     $id = (int) $value;
     $cantons = Canton::getCanton($id);
     return response()->json($cantons);
 }
Пример #2
0
 function findcanton($id)
 {
     $cantontes = Canton::where('provincia_id', $id)->get();
     return response()->json($cantontes);
 }