/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function show($id) { $data = Segment::all(); return response()->json(json_encode($data)); }