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',
|
'municipality:id,code,name',
|
||||||
'users:id,name,paternal,maternal,email,module_id',
|
'users:id,name,paternal,maternal,email,module_id',
|
||||||
'users.roles:id,name,description'
|
'users.roles:id,name,description'
|
||||||
])->withCount(['packages']);
|
]);
|
||||||
|
|
||||||
// Filtro por nombre
|
// Filtro por nombre
|
||||||
if ($request->filled('name')) {
|
if ($request->filled('name')) {
|
||||||
@ -111,7 +111,7 @@ public function show($id)
|
|||||||
'municipality:id,code,name',
|
'municipality:id,code,name',
|
||||||
'users:id,name,paternal,maternal,email,module_id',
|
'users:id,name,paternal,maternal,email,module_id',
|
||||||
'users.roles:id,name,description'
|
'users.roles:id,name,description'
|
||||||
])->withCount(['packages'])->find($id);
|
])->find($id);
|
||||||
|
|
||||||
return ApiResponse::OK->response([
|
return ApiResponse::OK->response([
|
||||||
'module' => $modules,
|
'module' => $modules,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user