/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $servicePoints = \App\Models\ServicePointsModel::get();
     foreach ($servicePoints as $servicePoint) {
         $servicePoint->processes = explode(',', $servicePoint->processes);
     }
     return response()->json(["servicePoints" => $servicePoints->toArray()], 200);
 }
Esempio n. 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $processes = \App\Models\ProcessesModel::get();
     $entities = \App\Models\EntitiesModel::get();
     $servicePoints = \App\Models\ServicePointsModel::get();
     $processes->toArray();
     $entities->toArray();
     $servicePoints->toArray();
     return response()->json(["processes" => $processes, "entities" => $entities, "servicePoints" => $servicePoints], 200);
 }