Correción modulos
This commit is contained in:
parent
df252f55f2
commit
3e48f8d6db
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user