api: Mostrar id de cada grupo de compra en la respuesta

This commit is contained in:
nat 2022-01-07 19:21:10 -03:00
parent c8ecc2ad9e
commit cd53c6719f
1 changed files with 1 additions and 1 deletions

View File

@ -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');
});
});