Example #1
0
 public function getAllocationsJson(Request $request, $id)
 {
     $allocations = Models\Allocation::select('ip')->where('node', $id)->groupBy('ip')->get();
     return response()->json($allocations);
 }