From cd53c6719fffa66276158c6aeac873799a4f00be Mon Sep 17 00:00:00 2001 From: nat Date: Fri, 7 Jan 2022 19:21:10 -0300 Subject: [PATCH] api: Mostrar id de cada grupo de compra en la respuesta --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 8c77909..52aa27b 100644 --- a/routes/api.php +++ b/routes/api.php @@ -23,7 +23,7 @@ Route::middleware('api')->group(function () { Route::prefix('grupos-de-compra')->group( function(){ Route::get('/', function() { - $atributos_a_ocultar = ['id', 'telefono', 'cantidad_de_nucleos', 'correo', 'referente_finanzas', 'created_at', 'updated_at']; + $atributos_a_ocultar = ['telefono', 'cantidad_de_nucleos', 'correo', 'referente_finanzas', 'created_at', 'updated_at']; return GrupoDeCompra::all()->makeHidden($atributos_a_ocultar)->sortBy('nombre')->groupBy('region'); }); });