Correción modulos

This commit is contained in:
Juan Felipe Zapata Moreno 2025-12-04 15:59:49 -06:00
parent df252f55f2
commit 3e48f8d6db

View File

@ -26,7 +26,7 @@ public function index(Request $request)
'municipality:id,code,name',
'users:id,name,paternal,maternal,email,module_id',
'users.roles:id,name,description'
])->withCount(['packages']);
]);
// Filtro por nombre
if ($request->filled('name')) {
@ -111,7 +111,7 @@ public function show($id)
'municipality:id,code,name',
'users:id,name,paternal,maternal,email,module_id',
'users.roles:id,name,description'
])->withCount(['packages'])->find($id);
])->find($id);
return ApiResponse::OK->response([
'module' => $modules,