コード例 #1
0
 public function allElements()
 {
     $output = ['tags' => Tag::get(), 'cities' => Cities::get(), 'states' => States::get(), 'countries' => Countries::get(), 'appElements' => AppElement::find(1)];
     return response()->json(['response_code' => 'RES_STS', 'messages' => 'States', 'data' => $output]);
 }
コード例 #2
0
 public function getCities()
 {
     return response()->json(['response_code' => 'RES_CTY', 'messages' => 'Cities', 'data' => Cities::get()]);
 }