feat(validity-time): add ValidityTimeResource and integrate into catalog and ticket resources

This commit is contained in:
2026-08-06 16:13:29 -03:00
parent 7561ba756c
commit 20dd246cd8
9 changed files with 113 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ class CatalogService
'category',
'brand',
'event',
'validityTime',
'itemAttributes.attribute',
'variants.inventory',
'variants.attachments',
@@ -147,7 +148,8 @@ class CatalogService
'category',
'brand',
'event',
'itemAttributes.attribute.options',
'validityTime',
'itemAttributes.attribute.options.validityTime',
'variants' => fn ($query) => $query->orderBy('id'),
'variants.inventory',
'variants.attachments',
@@ -203,6 +205,7 @@ class CatalogService
->with([
'attachments',
'inventory',
'validityTime',
'variants.inventory',
'variants.attachments',
'variants.eventDate',
@@ -235,6 +238,7 @@ class CatalogService
->with([
'attachments',
'inventory',
'validityTime',
'variants.inventory',
'variants.attachments',
'variants.eventDate',