コード例 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $municipality = Municipality::find(intval($id));
     $county = County::find(intval($municipality['county_id']));
     $items = Village::where('municipality_id', intval($id))->get();
     return view('poi.municipality.show')->with('municipality', $municipality)->with('county', $county)->with('items', $items);
 }
コード例 #2
0
 public function geo($id)
 {
     $village = Village::find(intval($id));
     $parser = new Parser();
     return response()->json($parser->json($village['geo']));
 }