feat: Add product specifications, order details, and VM information to the service client detail resource and eager load related data.

This commit is contained in:
pbao9
2026-03-13 17:03:10 +07:00
parent 0e5832b1fb
commit 44f4f64b37
2 changed files with 38 additions and 8 deletions
@@ -47,7 +47,11 @@ class ServiceClientRepository extends BaseApiRepository implements ServiceClient
public function getDetailService(string $uuid)
{
return $this->model
->with(['orderItem.os.osGroup.host.datacenter.vCenter'])
->with([
'orderItem.os.osGroup',
'orderItem.product',
'orderItem.order.vmWare.ipAddress',
])
->where('uuid', $uuid)
->first();
}