| @@ -120,17 +120,21 @@ class Controller extends BaseController | |||
| public function getDatabase(Request $request) | |||
| { | |||
| $subscriber = Subscriber::groupBy('city')->get(); | |||
| // $subscriber = Subscriber::groupBy('city')->get(); | |||
| $city = array(); | |||
| // $city = array(); | |||
| foreach ($subscriber as $key => $s) { | |||
| # code... | |||
| array_push($city, array( | |||
| 'city' => $s->city | |||
| )); | |||
| } | |||
| // foreach ($subscriber as $key => $s) { | |||
| // # code... | |||
| // array_push($city, array( | |||
| // 'city' => $s->city | |||
| // )); | |||
| // } | |||
| return $city; | |||
| // return $city; | |||
| $work_order = WorkOrder::where('wo', 'WO-15610')->first(); | |||
| return $work_order; | |||
| } | |||
| } | |||