public function getdata(Request $request) { $grupo = Grupo::find($request->IdGrupo); return response()->json($grupo); }