user(); $tenant = $user->tenant()->firstOrFail(); return TenantResource::make( $this->tenantInformationService->load($tenant, [ 'menues' => fn ($query) => $query ->where('code', 'like', 'admin.%') ->whereHas( 'roles', fn ($query) => $query->where('codigo', $user->rol_codigo) ), ]) ); } }